Fix double progress meter in DB upgrade overlay
This commit is contained in:
parent
95a9ccae69
commit
a85d707226
1 changed files with 6 additions and 2 deletions
|
@ -1429,8 +1429,12 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
|
|||
//let progressMeter = win.ZoteroPane.document.getElementById('zotero-pane-progressmeter');
|
||||
let doc = win.ZoteroPane.document;
|
||||
let container = doc.getElementById('zotero-pane-progressmeter-container');
|
||||
let progressMeter = doc.createElement('progressmeter');
|
||||
progressMeter.id = 'zotero-pane-progressmeter';
|
||||
let id = 'zotero-pane-progressmeter';
|
||||
let progressMeter = doc.getElementById(id);
|
||||
if (!progressMeter) {
|
||||
progressMeter = doc.createElement('progressmeter');
|
||||
progressMeter.id = id;
|
||||
}
|
||||
progressMeter.setAttribute('mode', 'undetermined');
|
||||
if (determinate) {
|
||||
progressMeter.mode = 'determined';
|
||||
|
|
Loading…
Reference in a new issue