mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Disable keepEditedSpriteData checkbox if dataRecovery is disabled
This commit is contained in:
parent
fb05e91d01
commit
45a09f1a15
@ -241,9 +241,21 @@ public:
|
||||
|
||||
if (m_pref.general.dataRecovery())
|
||||
enableDataRecovery()->setSelected(true);
|
||||
enableDataRecovery()->Click.connect(
|
||||
[this](Event&){
|
||||
const bool state = enableDataRecovery()->isSelected();
|
||||
keepEditedSpriteData()->setEnabled(state);
|
||||
keepEditedSpriteData()->setSelected(state);
|
||||
keepEditedSpriteDataFor()->setEnabled(state);
|
||||
});
|
||||
|
||||
if (m_pref.general.keepEditedSpriteData())
|
||||
if (m_pref.general.dataRecovery() &&
|
||||
m_pref.general.keepEditedSpriteData())
|
||||
keepEditedSpriteData()->setSelected(true);
|
||||
else if (!m_pref.general.dataRecovery()) {
|
||||
keepEditedSpriteData()->setEnabled(false);
|
||||
keepEditedSpriteDataFor()->setEnabled(false);
|
||||
}
|
||||
|
||||
if (m_pref.general.keepClosedSpriteOnMemory())
|
||||
keepClosedSpriteOnMemory()->setSelected(true);
|
||||
|
Loading…
Reference in New Issue
Block a user