From dbba0ed0f35c947dc54e3a94936d4c1646291ea0 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Wed, 26 Apr 2017 15:08:05 -0300 Subject: [PATCH] Improved without-update flag --- app/Application.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Application.js b/app/Application.js index 09f8774e..4395ec01 100644 --- a/app/Application.js +++ b/app/Application.js @@ -34,7 +34,7 @@ Ext.define('Rambox.Application', { Rambox.ux.Auth0.init(); // Check for updates - if ( require('electron').remote.process.argv.indexOf('--without-update') === -1 ) Rambox.app.checkUpdate(true); + if ( require('electron').remote.process.argv.indexOf('--without-update') === -1 && process.platform !== 'win32' ) Rambox.app.checkUpdate(true); // Add shortcuts to switch services using CTRL + Number var map = new Ext.util.KeyMap({ @@ -188,10 +188,6 @@ Ext.define('Rambox.Application', { } }); - if ( process.platform !== 'win32' ) { - this.checkUpdate(true); - } - // Define default value if ( localStorage.getItem('dontDisturb') === null ) localStorage.setItem('dontDisturb', false);