From 4e489fffca263c7ef56f539fee9215578c2412c0 Mon Sep 17 00:00:00 2001 From: Glenn Ruehle Date: Thu, 30 Aug 2012 09:43:54 -0700 Subject: [PATCH] Only show the 'error fetching update info' dialog when doing a forced check for updates. --- src/utils/UpdateNotification.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/utils/UpdateNotification.js b/src/utils/UpdateNotification.js index 535ff090c7d..3c0b50c00f5 100644 --- a/src/utils/UpdateNotification.js +++ b/src/utils/UpdateNotification.js @@ -331,11 +331,13 @@ define(function (require, exports, module) { }) .fail(function () { // Error fetching the update data. If this is a forced check, alert the user - Dialogs.showModalDialog( - Dialogs.DIALOG_ID_ERROR, - Strings.ERROR_FETCHING_UPDATE_INFO_TITLE, - Strings.ERROR_FETCHING_UPDATE_INFO_MSG - ); + if (force) { + Dialogs.showModalDialog( + Dialogs.DIALOG_ID_ERROR, + Strings.ERROR_FETCHING_UPDATE_INFO_TITLE, + Strings.ERROR_FETCHING_UPDATE_INFO_MSG + ); + } result.reject(); });