mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
GUI: Fix SaveLoadChooserGrid not disabling write protected slots
This was broken in commit f24a89e
that disabled the slots when they
are locked due to cloud sync.
This commit is contained in:
parent
bdbbcd81ae
commit
e0802ec341
@ -1133,14 +1133,12 @@ void SaveLoadChooserGrid::updateSaves() {
|
||||
|
||||
// In save mode we disable the button, when it's write protected.
|
||||
// TODO: Maybe we should not display it at all then?
|
||||
if (_saveMode && desc.getWriteProtectedFlag()) {
|
||||
// We also disable and description the button if slot is locked
|
||||
if ((_saveMode && desc.getWriteProtectedFlag()) || desc.getLocked()) {
|
||||
curButton.button->setEnabled(false);
|
||||
} else {
|
||||
curButton.button->setEnabled(true);
|
||||
}
|
||||
|
||||
//that would make it look "disabled" if slot is locked
|
||||
curButton.button->setEnabled(!desc.getLocked());
|
||||
curButton.description->setEnabled(!desc.getLocked());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user