mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Themes Window: do not download themes information multiple times.
Change-Id: Ic8011ec3f45d4313436a5a49a3a0f604f8931840
This commit is contained in:
parent
ca1bbc08b3
commit
39396cc707
1 changed files with 9 additions and 5 deletions
|
|
@ -290,13 +290,17 @@ void ThemesInstallWindow::show()
|
||||||
if(windowSelectOnly)
|
if(windowSelectOnly)
|
||||||
ui.buttonOk->setText(tr("Select"));
|
ui.buttonOk->setText(tr("Select"));
|
||||||
|
|
||||||
logger = new ProgressLoggerGui(this);
|
if(!logger)
|
||||||
logger->show();
|
logger = new ProgressLoggerGui(this);
|
||||||
logger->addItem(tr("getting themes information ..."), LOGINFO);
|
|
||||||
|
|
||||||
connect(logger, SIGNAL(aborted()), this, SLOT(close()));
|
if(ui.listThemes->count() == 0) {
|
||||||
|
logger->show();
|
||||||
|
logger->addItem(tr("getting themes information ..."), LOGINFO);
|
||||||
|
|
||||||
downloadInfo();
|
connect(logger, SIGNAL(aborted()), this, SLOT(close()));
|
||||||
|
|
||||||
|
downloadInfo();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue