forked from len0rd/rockbox
rbutil: Fix bootloader uninstall availability.
The logic for disabling the uninstall button was wrong. Change-Id: Icec4b70a7323bb6ae275e7b88fff414450ba4566
This commit is contained in:
parent
0ce287503c
commit
1ff11b627b
1 changed files with 4 additions and 4 deletions
|
@ -367,10 +367,10 @@ void RbUtilQt::updateDevice()
|
||||||
playerBuildInfo->value(PlayerBuildInfo::BootloaderMethod).toString());
|
playerBuildInfo->value(PlayerBuildInfo::BootloaderMethod).toString());
|
||||||
|
|
||||||
/* Disable uninstallation actions if they are not supported. */
|
/* Disable uninstallation actions if they are not supported. */
|
||||||
bool bootloaderUninstallable = !(bootloaderCapabilities & BootloaderInstallBase::Uninstall);
|
bool canUninstall = (bootloaderCapabilities & BootloaderInstallBase::Uninstall);
|
||||||
ui.labelRemoveBootloader->setEnabled(bootloaderUninstallable);
|
ui.labelRemoveBootloader->setEnabled(canUninstall);
|
||||||
ui.buttonRemoveBootloader->setEnabled(bootloaderUninstallable);
|
ui.buttonRemoveBootloader->setEnabled(canUninstall);
|
||||||
ui.actionRemove_bootloader->setEnabled(bootloaderUninstallable);
|
ui.actionRemove_bootloader->setEnabled(canUninstall);
|
||||||
|
|
||||||
/* Disable the whole tab widget if configuration is invalid */
|
/* Disable the whole tab widget if configuration is invalid */
|
||||||
bool configurationValid = !chkConfig(nullptr);
|
bool configurationValid = !chkConfig(nullptr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue