forked from len0rd/rockbox
rbutil: add abort signal for bootloader install/uninstall
During the bootloader install/uninstall process, a signal is emitted when "Abort" button is pressed, the installers can attach this signal and cancel the process. Change-Id: I7f297b8031d7a2d93da0022081aaef03ef041baf
This commit is contained in:
parent
e4af97300d
commit
40ce2b4133
4 changed files with 13 additions and 0 deletions
|
|
@ -569,6 +569,8 @@ void RbUtilQt::uninstallBootloader(void)
|
|||
connect(bl, SIGNAL(logItem(QString, int)), logger, SLOT(addItem(QString, int)));
|
||||
connect(bl, SIGNAL(logProgress(int, int)), logger, SLOT(setProgress(int, int)));
|
||||
connect(bl, SIGNAL(done(bool)), logger, SLOT(setFinished()));
|
||||
// pass Abort button click signal to current installer
|
||||
connect(logger, SIGNAL(aborted()), bl, SLOT(progressAborted()));
|
||||
|
||||
bl->uninstall();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue