From f218d6a3c9d812dbb4f876d6f8e8a0e8cb2e7df7 Mon Sep 17 00:00:00 2001 From: gambas Date: Fri, 30 Mar 2018 00:51:10 +0200 Subject: [PATCH] Code editor: Correctly hide the insert special character button when the editor is read-only. [DEVELOPMENT ENVIRONMENT] * BUG: Code editor: Correctly hide the insert special character button when the editor is read-only. --- app/src/gambas3/.src/Editor/Code/FEditor.class | 2 +- app/src/gambas3/.src/Editor/Code/FTextEditor.class | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/gambas3/.src/Editor/Code/FEditor.class b/app/src/gambas3/.src/Editor/Code/FEditor.class index abca92cb8..e5d536cc1 100644 --- a/app/src/gambas3/.src/Editor/Code/FEditor.class +++ b/app/src/gambas3/.src/Editor/Code/FEditor.class @@ -462,7 +462,7 @@ Private Sub UpdateMenu() bVisible = Not edtEditor.ReadOnly - Action[".save,.undo,.redo,.cut,.paste,.paste-special,.comment,.uncomment,.color,.indent,.unindent,.lcase,.ucase,.pretty,.date", Me].Visible = bVisible + Action[".save,.undo,.redo,.cut,.paste,.paste-special,.comment,.uncomment,.color,.indent,.unindent,.lcase,.ucase,.pretty,.date,.char", Me].Visible = bVisible Action[".watch", Me].Visible = Project.Running mnuAdvanced.Visible = bVisible diff --git a/app/src/gambas3/.src/Editor/Code/FTextEditor.class b/app/src/gambas3/.src/Editor/Code/FTextEditor.class index c3ea192ba..57c078155 100644 --- a/app/src/gambas3/.src/Editor/Code/FTextEditor.class +++ b/app/src/gambas3/.src/Editor/Code/FTextEditor.class @@ -1247,7 +1247,7 @@ Private Sub UpdateMenu() bVisible = Not edtEditor.ReadOnly - Action[".save,.undo,.redo,.cut,.paste,.color,.indent,.unindent,.lcase,.ucase,.sort-ascent,.sort-descent,.eol,.date", Me].Visible = bVisible + Action[".save,.undo,.redo,.cut,.paste,.color,.indent,.unindent,.lcase,.ucase,.sort-ascent,.sort-descent,.eol,.date,.char", Me].Visible = bVisible mnuAdvanced.Visible = bVisible mnuEndOfLine.Visible = bVisible