mirror of https://gitlab.com/nakst/essence
ignore EsInstanceSetModified unless an editor
This commit is contained in:
parent
2a0b3e0a12
commit
4d05e8e751
|
@ -1352,6 +1352,11 @@ EsMessage *EsMessageReceive() {
|
|||
}
|
||||
|
||||
void EsInstanceSetModified(EsInstance *instance, bool modified) {
|
||||
if (((APIInstance *) instance->_private)->instanceClass != ES_INSTANCE_CLASS_EDITOR) {
|
||||
// The modified flag should only be used if this is an editor-style application.
|
||||
return;
|
||||
}
|
||||
|
||||
EsCommandSetEnabled(EsCommandByID(instance, ES_COMMAND_SAVE), modified);
|
||||
|
||||
if (instance->window) {
|
||||
|
|
Loading…
Reference in New Issue