- Set sync icon to spinning or not at pane/tab open
- Update file sync progress bar in tab
This commit is contained in:
parent
7eb1c9dd9f
commit
85235da6b3
|
@ -1804,7 +1804,8 @@ Zotero.Sync.Storage.QueueManager = new function () {
|
|||
var enumerator = wm.getEnumerator("navigator:browser");
|
||||
while (enumerator.hasMoreElements()) {
|
||||
var win = enumerator.getNext();
|
||||
var doc = win.document;
|
||||
if (!win.ZoteroPane) continue;
|
||||
var doc = win.ZoteroPane.document;
|
||||
|
||||
//
|
||||
// TODO: Move to overlay.js?
|
||||
|
|
|
@ -405,6 +405,16 @@ var ZoteroPane = new function()
|
|||
}, 1000);
|
||||
}
|
||||
|
||||
// Set sync icon to spinning or not
|
||||
//
|
||||
// We don't bother setting an error state at open
|
||||
if (Zotero.Sync.Server.syncInProgress || Zotero.Sync.Storage.syncInProgress) {
|
||||
Zotero.Sync.Runner.setSyncIcon('animate');
|
||||
}
|
||||
else {
|
||||
Zotero.Sync.Runner.setSyncIcon();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user