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.
This commit is contained in:
gambas 2018-03-30 00:51:10 +02:00
parent b81e653925
commit f218d6a3c9
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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