forked from len0rd/rockbox
Make autodetection show a busy cursor (hourglass) during detection to improve visual feedback.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19114 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
29d9fadae9
commit
5c1b47dd1a
1 changed files with 3 additions and 0 deletions
|
@ -507,6 +507,7 @@ void Config::autodetect()
|
||||||
// disable tree during detection as "working" feedback.
|
// disable tree during detection as "working" feedback.
|
||||||
// TODO: replace the tree view with a splash screen during this time.
|
// TODO: replace the tree view with a splash screen during this time.
|
||||||
ui.treeDevices->setEnabled(false);
|
ui.treeDevices->setEnabled(false);
|
||||||
|
this->setCursor(Qt::WaitCursor);
|
||||||
QCoreApplication::processEvents();
|
QCoreApplication::processEvents();
|
||||||
|
|
||||||
if(detector.detect()) //let it detect
|
if(detector.detect()) //let it detect
|
||||||
|
@ -538,6 +539,7 @@ void Config::autodetect()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this->unsetCursor();
|
||||||
|
|
||||||
if(!detector.errdev().isEmpty()) {
|
if(!detector.errdev().isEmpty()) {
|
||||||
QString text;
|
QString text;
|
||||||
|
@ -579,6 +581,7 @@ void Config::autodetect()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
this->unsetCursor();
|
||||||
QMessageBox::warning(this, tr("Autodetection"),
|
QMessageBox::warning(this, tr("Autodetection"),
|
||||||
tr("Could not detect a device.\n"
|
tr("Could not detect a device.\n"
|
||||||
"Select your device and Mountpoint manually."),
|
"Select your device and Mountpoint manually."),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue