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:
Dominik Riebeling 2008-05-21 22:03:37 +00:00
parent 03de6c67ab
commit 23744fe314

View file

@ -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()