Skip to content

Commit

Permalink
feat: Close file menu item is now disabled when no file is currently …
Browse files Browse the repository at this point in the history
…open
  • Loading branch information
michaelkoelle committed Oct 27, 2021
1 parent 4b47576 commit 0d0f400
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/menu/FileMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ const buildFileMenu = (
},
{
label: 'Close file',
disabled: !workspace,
click: async () => {
unsavedChangesDialog('');
},
Expand Down

0 comments on commit 0d0f400

Please sign in to comment.