diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-04-20 10:36:31 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-04-20 10:36:31 -0500 |
commit | 960b7eb6fea2a84a2c3f4a38c5b2c152002f2fb3 (patch) | |
tree | 8f69b1a0eb0daf8992acf9fe31e6f1b341793e81 | |
parent | a9218c8b212d51dc191e6002678509d77fbe5bc2 (diff) | |
download | aura-central-960b7eb6fea2a84a2c3f4a38c5b2c152002f2fb3.tar.gz |
[Apps:Navigator] Add a restart menu item to navigatorOverlay
-rw-r--r-- | apps/navigator/base/content/navigatorOverlay.xul | 2 | ||||
-rw-r--r-- | apps/navigator/base/locale/navigatorOverlay.dtd | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/apps/navigator/base/content/navigatorOverlay.xul b/apps/navigator/base/content/navigatorOverlay.xul index d2e1fea6e..740c99d2c 100644 --- a/apps/navigator/base/content/navigatorOverlay.xul +++ b/apps/navigator/base/content/navigatorOverlay.xul @@ -130,6 +130,7 @@ <command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/> <command id="cmd_closeOtherTabs" oncommand="BrowserCloseOtherTabs()"/> <command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/> + <command id="cmd_restart" oncommand="Services.startup.quit(Services.startup.eAttemptQuit | Services.startup.eRestart);"/> <!-- Edit Menu --> <command id="cmd_undo"/> @@ -258,6 +259,7 @@ <menuitem id="menu_close"/> <menuitem id="menu_closeOtherTabs" hidden="true" command="cmd_closeOtherTabs" label="&closeOtherTabs.label;" accesskey="&closeOtherTabs.accesskey;"/> <menuitem id="menu_closeWindow" hidden="true" command="cmd_closeWindow" key="key_closeWindow" label="&closeWindow.label;" accesskey="&closeWindow.accesskey;"/> + <menuitem id="menu_restart" command="cmd_restart" label="&restart.label;" insertbefore="menu_FileQuitItem"/> </menupopup> </menu> diff --git a/apps/navigator/base/locale/navigatorOverlay.dtd b/apps/navigator/base/locale/navigatorOverlay.dtd index fef22b73b..f30eaa522 100644 --- a/apps/navigator/base/locale/navigatorOverlay.dtd +++ b/apps/navigator/base/locale/navigatorOverlay.dtd @@ -22,6 +22,8 @@ <!ENTITY printSetupCmd.label "Page Setup…"> <!ENTITY printSetupCmd.accesskey "u"> +<!ENTITY restart.label "Restart…"> + <!-- Edit Menu --> <!ENTITY findOnCmd.label "Find in This Page…"> |