diff --git a/examples/dmledit/src/dmledit.d b/examples/dmledit/src/dmledit.d index 61eb18f9..32a85381 100644 --- a/examples/dmledit/src/dmledit.d +++ b/examples/dmledit/src/dmledit.d @@ -252,12 +252,18 @@ class EditFrame : AppFrame { switch (a.id) { case IDEActions.HelpAbout: case IDEActions.FileNew: - case IDEActions.FileSave: case IDEActions.FileOpen: case IDEActions.DebugStart: case IDEActions.EditPreferences: + case IDEActions.FileSaveAs: a.state = ACTION_STATE_ENABLED; return true; + case IDEActions.FileSave: + if (_content.modified) + a.state = ACTION_STATE_ENABLED; + else + a.state = ACTION_STATE_DISABLED; + return true; default: return super.handleActionStateRequest(a); } diff --git a/views/DLANGUI_VERSION b/views/DLANGUI_VERSION index 9a4773d9..016489e6 100644 --- a/views/DLANGUI_VERSION +++ b/views/DLANGUI_VERSION @@ -1 +1 @@ -v0.9.139 \ No newline at end of file +v0.9.140 \ No newline at end of file