commit 3420b4874af1d192db95b6cce80b9881dd1beaa4
parent b69e6fc3abc499b6585bdd6e7677e78f37115f37
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 9 Jul 2015 18:00:15 -0400
Tweaks for application menu on OS X
- Restore About Zotero item
- Fix Quit item
- Close Standalone when Standalone window is closed (we did this before,
but apparently having our own hidden window breaks that mechanism)
Diffstat:
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/chrome/content/zotero/standalone/hiddenWindow.xul b/chrome/content/zotero/standalone/hiddenWindow.xul
@@ -36,11 +36,11 @@
<!ENTITY % zoteroDTD SYSTEM "chrome://zotero/locale/zotero.dtd"> %zoteroDTD;
]>
-<window id="main-window" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+<window id="main-window" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+ <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
<commandset id="mainCommandSet">
<!--FILE-->
<command id="cmd_quitApplication" oncommand="goQuitApplication();"/>
- <command id="cmd_close" oncommand="window.close();"/>
</commandset>
<keyset id="mainKeyset">
@@ -49,7 +49,12 @@
<menubar id="main-menubar">
<menu id="fileMenu" label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
- <menupopup id="menu_FilePopup"/>
+ <menupopup id="menu_FilePopup">
+ <menuitem id="aboutName"
+ accesskey="&aboutProduct.accesskey;"
+ label="&aboutProduct.label;"
+ oncommand="Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator).getMostRecentWindow('navigator:browser').ZoteroPane.openAboutDialog();"/>
+ </menupopup>
</menu>
</menubar>
</window>
diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js
@@ -144,7 +144,7 @@ const ZoteroStandalone = new function() {
* Called before standalone window is closed
*/
this.onUnload = function() {
- ZoteroPane.destroy();
+ goQuitApplication();
}
}