Hide sync debugging menu behind extensions.zotero.sync.debugMenu by default, now that there are user-friendly replacements
This commit is contained in:
parent
b9121177e5
commit
94f004002b
2 changed files with 14 additions and 4 deletions
|
@ -216,6 +216,16 @@ var ZoteroPane = new function()
|
|||
}, 400);
|
||||
Zotero.Prefs.set('firstRun', false);
|
||||
}
|
||||
|
||||
// Hide sync debugging menu by default
|
||||
if (Zotero.Prefs.get('sync.debugMenu')) {
|
||||
var sep = document.getElementById('zotero-tb-actions-sync-separator');
|
||||
var menuitems = [];
|
||||
sep.nextSibling.hidden = false;
|
||||
sep.nextSibling.nextSibling.hidden = false;
|
||||
sep.nextSibling.nextSibling.nextSibling.hidden = false;
|
||||
sep.nextSibling.nextSibling.nextSibling.nextSibling.hidden = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -128,10 +128,10 @@
|
|||
<menuseparator id="zotero-tb-actions-plugins-separator"/>
|
||||
<menuitem id="zotero-tb-actions-timeline" label="&zotero.toolbar.timeline.label;" oncommand="Zotero_Timeline_Interface.loadTimeline()"/>
|
||||
<menuseparator id="zotero-tb-actions-sync-separator"/>
|
||||
<menuitem label="Sync Debugging" disabled="true"/>
|
||||
<menuitem label=" Clear Server Data" oncommand="Zotero.Sync.Server.clear()"/>
|
||||
<menuitem label=" Reset Server Lock" oncommand="Zotero.Sync.Server.resetServer()"/>
|
||||
<menuitem label=" Reset Client" oncommand="Zotero.Sync.Server.resetClient()"/>
|
||||
<menuitem hidden="true" label="Sync Debugging" disabled="true"/>
|
||||
<menuitem hidden="true" label=" Clear Server Data" oncommand="Zotero.Sync.Server.clear()"/>
|
||||
<menuitem hidden="true" label=" Reset Server Lock" oncommand="Zotero.Sync.Server.resetServer()"/>
|
||||
<menuitem hidden="true" label=" Reset Client" oncommand="Zotero.Sync.Server.resetClient()"/>
|
||||
<menuitem label="Storage Debugging" disabled="true"/>
|
||||
<menuitem label=" Reset Storage History" oncommand="Zotero.Sync.Storage.resetAllSyncStates()"/>
|
||||
<menuitem label=" Purge Deleted Storage Files" oncommand="Zotero.Sync.Storage.purgeDeletedStorageFiles(function(results) { Zotero.debug(results); })"/>
|
||||
|
|
Loading…
Reference in a new issue