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
af7d101043
commit
cfeecdec27
1 changed files with 2 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue