Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Apr 25, 2024
1 parent c0b2b17 commit eae416c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/formmain_updates_proc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,13 @@ begin
if F=nil then exit;
Ed:= F.Editor;

if Assigned(mnuFileReopen) then
mnuFileReopen.Enabled:= Ed.FileName<>'';
if Assigned(mnuFileRename) then
mnuFileRename.Enabled:= Ed.FileName<>'';
if Assigned(mnuFileCloseDel) then
mnuFileCloseDel.Enabled:= Ed.FileName<>'';

UpdateMenuItemChecked(mnuViewWrap, mnuViewWrap_Alt, F.WordWrap<>TATEditorWrapMode.ModeOff);
UpdateMenuItemChecked(mnuViewNums, mnuViewNums_Alt, Ed.Gutter.Items[Ed.Gutter.FindIndexByTag(ATEditorOptions.GutterTagNumbers)].Visible);
UpdateMenuItemChecked(mnuViewFold, mnuViewFold_Alt, Ed.Gutter.Items[Ed.Gutter.FindIndexByTag(ATEditorOptions.GutterTagFolding)].Visible);
Expand Down

0 comments on commit eae416c

Please sign in to comment.