Skip to content

Commit

Permalink
Remove menu bar action for creating new windows
Browse files Browse the repository at this point in the history
Functionality for creating new windows hasn't been implemented yet, so
remove the menu bar item until it has been implemented.
  • Loading branch information
cdepillabout committed Jan 26, 2024
1 parent 465231e commit d4cd66a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Termonad/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ setupAppCallbacks mvarTMState tmConfig app win note tmWinId = do
pure ()
-- void $ createTerm handleKeyPress mvarTMState tmWinId
actionMapAddAction app newWindowAction
applicationSetAccelsForAction app "app.newwin" ["<Shift><Ctrl>N"]
-- TODO: Uncomment this when adding the actual functionality
-- for creating new windows.
-- applicationSetAccelsForAction app "app.newwin" ["<Shift><Ctrl>N"]

void $ onNotebookPageRemoved note $ \_ _ -> do
pages <- notebookGetNPages note
Expand Down
5 changes: 5 additions & 0 deletions src/Termonad/XML.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ menuDoc =
<submenu>
<attribute name="label" translatable="yes">File</attribute>
<section>
<!-- TODO: Uncomment this when adding functionality for creating new
windows
-->
<!--
<item>
<attribute name="label" translatable="yes">_New Window</attribute>
<attribute name="action">app.newwin</attribute>
</item>
-->
<item>
<attribute name="label" translatable="yes">New _Tab</attribute>
<attribute name="action">win.newtab</attribute>
Expand Down

0 comments on commit d4cd66a

Please sign in to comment.