From 6021717425e4115f2fcc448d79d6b91ff5fe1055 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Tue, 19 Sep 2017 14:21:49 +0300 Subject: [PATCH] update version --- examples/dmledit/src/dmledit.d | 8 +++++++- views/DLANGUI_VERSION | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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