forked from len0rd/rockbox
rbutil: show progress bar during bootloader uninstall
Useful for targets that needs multi-stage uninstall. On current targets (with Uninstall capability) the progress is updated to 100% when bootloader uninstall is successfully finished. Change-Id: I61be1c4f5cfc2d2f35fa5005962be9703888447d
This commit is contained in:
parent
5a673d6df2
commit
e4af97300d
5 changed files with 4 additions and 1 deletions
|
|
@ -129,6 +129,7 @@ bool BootloaderInstallFile::uninstall(void)
|
|||
}
|
||||
emit logItem(tr("Original bootloader restored successfully."), LOGOK);
|
||||
logInstall(LogRemove);
|
||||
emit logProgress(1, 1);
|
||||
emit done(false);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ bool BootloaderInstallIpod::uninstall(void)
|
|||
if (delete_bootloader(&ipod)==0) {
|
||||
emit logItem(tr("Successfully removed bootloader"), LOGOK);
|
||||
logInstall(LogRemove);
|
||||
emit logProgress(1, 1);
|
||||
emit done(false);
|
||||
ipod_close(&ipod);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -114,6 +114,7 @@ bool BootloaderInstallMi4::uninstall(void)
|
|||
QFile::rename(Utils::resolvePathCase(original), resolved);
|
||||
emit logItem(tr("Rockbox bootloader successful removed"), LOGINFO);
|
||||
logInstall(LogRemove);
|
||||
emit logProgress(1, 1);
|
||||
emit done(false);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -194,6 +194,7 @@ bool BootloaderInstallSansa::uninstall(void)
|
|||
if (sansa_delete_bootloader(&sansa)==0) {
|
||||
emit logItem(tr("Successfully removed bootloader"), LOGOK);
|
||||
logInstall(LogRemove);
|
||||
emit logProgress(1, 1);
|
||||
emit done(false);
|
||||
sansa_close(&sansa);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue