From d8688477d93a1df49520ba14d6665a54011ee508 Mon Sep 17 00:00:00 2001 From: Rob McVey Date: Mon, 6 Jan 2020 15:19:36 -0800 Subject: [PATCH] Linux client window management issue (#193) * Version bump (v4.0.1) * Fixed issue that caused Linux client to quit when windows were closed. * Removed unused IS_LINUX, linter --- scripts/maybeNotarize.js | 4 ++-- src/Action.js | 1 + src/start.js | 6 ++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/maybeNotarize.js b/scripts/maybeNotarize.js index 997c5d72..d609535a 100755 --- a/scripts/maybeNotarize.js +++ b/scripts/maybeNotarize.js @@ -14,7 +14,7 @@ exports.default = async function maybeNotarizing (context) { const { electronPlatformName, appOutDir, - packager: { appInfo: { productFilename }} + packager: { appInfo: { productFilename } } } = context const missingCreds = !(APPLE_ID || APPLE_API_KEY) @@ -49,6 +49,6 @@ exports.default = async function maybeNotarizing (context) { params.ascProvider = ASC_PROVIDER } - console.log("Notarizing app, coffee time?") + console.log('Notarizing app, coffee time?') return notarize(params) } diff --git a/src/Action.js b/src/Action.js index 1ce9b461..5bb10060 100644 --- a/src/Action.js +++ b/src/Action.js @@ -109,6 +109,7 @@ class Action extends Component { ) }) } + /** * Provides variables to use in the instructions template. The returned keys * can be used in conditionals in instructions.yml diff --git a/src/start.js b/src/start.js index 13c6e427..9bd0ad7a 100644 --- a/src/start.js +++ b/src/start.js @@ -27,7 +27,7 @@ import initProtocols from './lib/protocolHandlers' import loadReactDevTools from './lib/loadReactDevTools' import iconFinder from './lib/findIcon' import startGraphQLServer from './server' -import { IS_LINUX, IS_MAC, IS_WIN } from './lib/platform' +import { IS_MAC, IS_WIN } from './lib/platform' import AutoLauncher from './AutoLauncher' import updateInit from './updater' @@ -375,9 +375,7 @@ process.on('uncaughtException', err => { }) app.on('window-all-closed', () => { - if (IS_LINUX) { - app.quit() - } + // minimize to tray }) export {}