mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-26 23:36:37 -04:00
disable device tree during autodetection to give some (small) visual feedback.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17599 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
03de6c67ab
commit
23744fe314
1 changed files with 4 additions and 0 deletions
|
|
@ -480,6 +480,9 @@ void Config::autodetect()
|
||||||
{
|
{
|
||||||
Autodetection detector(this);
|
Autodetection detector(this);
|
||||||
detector.setSettings(settings);
|
detector.setSettings(settings);
|
||||||
|
// disable tree during detection as "working" feedback.
|
||||||
|
// TODO: replace the tree view with a splash screen during this time.
|
||||||
|
ui.treeDevices->setEnabled(false);
|
||||||
|
|
||||||
if(detector.detect()) //let it detect
|
if(detector.detect()) //let it detect
|
||||||
{
|
{
|
||||||
|
|
@ -557,6 +560,7 @@ void Config::autodetect()
|
||||||
QMessageBox::Ok ,QMessageBox::Ok);
|
QMessageBox::Ok ,QMessageBox::Ok);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
ui.treeDevices->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Config::cacheClear()
|
void Config::cacheClear()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue