From e1113209d5a04b96d8cc4847ac4cbea1fa289bc7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 11 Mar 2012 16:25:47 -0400 Subject: [PATCH] Disable unresponsive script warning before delayed bundled files update --- chrome/content/zotero/xpcom/schema.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 60bef8d9c8..3373f6d702 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -212,7 +212,13 @@ Zotero.Schema = new function(){ // After a delay, start update of bundled files and repo updates setTimeout(function () { - var up = Zotero.Schema.updateBundledFiles(); + try { + Zotero.UnresponsiveScriptIndicator.disable(); + var up = Zotero.Schema.updateBundledFiles(); + } + finally { + Zotero.UnresponsiveScriptIndicator.enable(); + } if (up) { // Run a manual scraper update if upgraded and pref set if (Zotero.Prefs.get('automaticScraperUpdates')) {