Don't show migration message in a popup in Standalone
Apparently this was happening sometimes, though I'm not sure how.
This commit is contained in:
parent
abff9e39ad
commit
c08354eced
2 changed files with 12 additions and 5 deletions
|
@ -576,7 +576,13 @@ Zotero.DataDirectory = {
|
||||||
// This can seemingly fail due to a race condition building the Standalone window,
|
// This can seemingly fail due to a race condition building the Standalone window,
|
||||||
// so just ignore it if it does
|
// so just ignore it if it does
|
||||||
try {
|
try {
|
||||||
Zotero.showZoteroPaneProgressMeter(Zotero.getString("dataDir.migration.inProgress"));
|
Zotero.showZoteroPaneProgressMeter(
|
||||||
|
Zotero.getString("dataDir.migration.inProgress"),
|
||||||
|
false,
|
||||||
|
null,
|
||||||
|
// Don't show message in a popup in Standalone if pane isn't ready
|
||||||
|
Zotero.iStandalone
|
||||||
|
);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
Zotero.logError(e);
|
Zotero.logError(e);
|
||||||
|
|
|
@ -1505,9 +1505,10 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
|
||||||
*
|
*
|
||||||
* @param {String} msg
|
* @param {String} msg
|
||||||
* @param {Boolean} [determinate=false]
|
* @param {Boolean} [determinate=false]
|
||||||
|
* @param {Boolean} [modalOnly=false] - Don't use popup if Zotero pane isn't showing
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
this.showZoteroPaneProgressMeter = function (msg, determinate, icon) {
|
this.showZoteroPaneProgressMeter = function (msg, determinate, icon, modalOnly) {
|
||||||
// If msg is undefined, keep any existing message. If false/null/"", clear.
|
// If msg is undefined, keep any existing message. If false/null/"", clear.
|
||||||
// The message is also cleared when the meters are hidden.
|
// The message is also cleared when the meters are hidden.
|
||||||
_progressMessage = msg = (msg === undefined ? _progressMessage : msg) || "";
|
_progressMessage = msg = (msg === undefined ? _progressMessage : msg) || "";
|
||||||
|
@ -1517,7 +1518,7 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
|
||||||
while (enumerator.hasMoreElements()) {
|
while (enumerator.hasMoreElements()) {
|
||||||
var win = enumerator.getNext();
|
var win = enumerator.getNext();
|
||||||
if(!win.ZoteroPane) continue;
|
if(!win.ZoteroPane) continue;
|
||||||
if(!win.ZoteroPane.isShowing()) {
|
if (!win.ZoteroPane.isShowing() && !modalOnly) {
|
||||||
if (win != currentWindow) {
|
if (win != currentWindow) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue