This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10747 - Disable actions if rbutil is not configured properly
Attached to Project:
Rockbox
Opened by Tomer Shalev (tomers) - Saturday, 31 October 2009, 10:25 GMT+2
Last edited by Tomer Shalev (tomers) - Sunday, 01 November 2009, 18:16 GMT+2
Opened by Tomer Shalev (tomers) - Saturday, 31 October 2009, 10:25 GMT+2
Last edited by Tomer Shalev (tomers) - Sunday, 01 November 2009, 18:16 GMT+2
|
DetailsThis patch disables all actions if rbutil is not configured yet.
It also adds disabling of menu items which were not disabled whenever their corresponding buttons got disabled. |
This task depends upon
Closed by Tomer Shalev (tomers)
Sunday, 01 November 2009, 18:16 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r23466
Sunday, 01 November 2009, 18:16 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r23466
Also, while the original idea is good I think this doesn't go far enough. If the configuration is wrong then there's no point in having the whole tab widget active at all -- if the configuration is invalid you can't install anything else either.
- On load, set the selected tab to be the first tab, instead of the extras tab.
- Disable the whole tabs widget and Actions menu item if rbutil is not configured properly
But i think the condition for bootloader_removable is not correct. We should check the flags of the bootloaderinstall class to see if it can remove the bootloader. And not just check for fwpatcher or none as install method.
- Removed setting active tab (there was no such issue, afterall).
- Renamed status variables to better match their intention.
- Add TODO comment for further work that needs to be done with regard of reading bootloader capabilities from the bootloader's own capabilities flag, and not from the settings.