Show toolbar icon and collections pane while items are loading

Items in a library are now loaded only when a library is clicked on and
at sync time. There might be some other areas where they need to be
loaded or where this causes problems (e.g., drag and drop, word
processor integration).
This commit is contained in:
Dan Stillman 2016-04-10 18:58:01 -04:00
parent be335acc65
commit 0469d6506a
7 changed files with 87 additions and 21 deletions

View file

@ -53,11 +53,6 @@ var loadZoteroPane = Zotero.Promise.coroutine(function* (win) {
Zotero.Prefs.clear('lastViewedFolder');
win.ZoteroOverlay.toggleDisplay(true);
// Hack to wait for pane load to finish. This is the same hack
// we use in ZoteroPane.js, so either it's not good enough
// there or it should be good enough here.
yield Zotero.Promise.delay(52);
yield waitForItemsLoad(win, 0);
return win;