From a4217909c077dfd7f82e7a9025a1e96347bcc7be Mon Sep 17 00:00:00 2001 From: probablycorey Date: Tue, 25 Jun 2013 09:54:03 -0700 Subject: [PATCH] Don't check for updates in background if version is a sha If the version is a 7 char sha, then we assume it is a local build. --- src/atom-application.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/atom-application.coffee b/src/atom-application.coffee index aef7cd01f..6e06e5a82 100644 --- a/src/atom-application.coffee +++ b/src/atom-application.coffee @@ -50,9 +50,7 @@ class AtomApplication @buildApplicationMenu() @handleEvents() - # Don't check for updates if it's a custom build. - if @version.indexOf('.') isnt -1 - @checkForUpdates() + @checkForUpdates() if test @runSpecs({exitWhenDone: true, @resourcePath}) @@ -82,6 +80,8 @@ class AtomApplication app.commandLine.appendSwitch 'js-flags', '--harmony_collections' checkForUpdates: -> + return if /\w{7}/.test @version # Don't check for updates if version is a short sha + autoUpdater.setAutomaticallyChecksForUpdates true autoUpdater.checkForUpdatesInBackground()