fx102: Hidden window: Bring back "Zotero" menuitem in Window menu (#4019)
Also: - Make Zotero window opened via Window menu resizable
This commit is contained in:
parent
e516fc8354
commit
c9fc68658b
2 changed files with 7 additions and 2 deletions
|
@ -36,6 +36,7 @@
|
|||
|
||||
<window id="main-window" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||
<html:link rel="localization" href="zotero.ftl"/>
|
||||
<html:link rel="localization" href="branding/brand.ftl"/>
|
||||
<html:link rel="localization" href="browser/menubar.ftl"/>
|
||||
<html:link rel="localization" href="browser/browserSets.ftl"/>
|
||||
|
@ -49,7 +50,7 @@
|
|||
// Equivalent to Zotero.openMainWindow()
|
||||
function openMainWindow() {
|
||||
var chromeURI = AppConstants.BROWSER_CHROME_URL;
|
||||
var flags = "chrome,all,dialog=no";
|
||||
var flags = "chrome,all,dialog=no,resizable=yes";
|
||||
var ww = Components.classes['@mozilla.org/embedcomp/window-watcher;1']
|
||||
.getService(Components.interfaces.nsIWindowWatcher);
|
||||
ww.openWindow(null, chromeURI, '_blank', flags, null);
|
||||
|
@ -83,7 +84,7 @@
|
|||
<command id="cmd_close" disabled="true"/>
|
||||
<command id="minimizeWindow" disabled="true" data-l10n-id="window-minimize-command"/>
|
||||
<command id="zoomWindow" disabled="true" data-l10n-id="window-zoom-command"/>
|
||||
<command id="cmd_mainWindow" oncommand="openMainWindow();"/>
|
||||
<command id="cmd_mainWindow" data-l10n-id="main-window-command" oncommand="openMainWindow();"/>
|
||||
</commandset>
|
||||
|
||||
<keyset id="mainKeyset">
|
||||
|
@ -157,6 +158,7 @@
|
|||
<menuseparator/>
|
||||
<menuitem label="&bringAllToFront.label;" disabled="true"/> -->
|
||||
<menuseparator id="sep-window-list"/>
|
||||
<menuitem command="cmd_mainWindow" key="key_mainWindow"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</menubar>
|
||||
|
|
|
@ -48,6 +48,9 @@ menu-deletePermanently =
|
|||
menu-tools-plugins =
|
||||
.label = Plugins
|
||||
|
||||
main-window-command =
|
||||
.label = { -app-name }
|
||||
|
||||
zotero-toolbar-tabs-menu =
|
||||
.tooltiptext = List all tabs
|
||||
filter-collections = Filter Collections
|
||||
|
|
Loading…
Reference in a new issue