From 35c8f32461c2fce608a7c8b0261da3ca682d33d0 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Wed, 12 Dec 2018 15:55:20 +1100 Subject: [PATCH] Fixed app quitting after unlock on linux. --- main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 5fc463a88..480194b2d 100644 --- a/main.js +++ b/main.js @@ -479,7 +479,11 @@ function showPasswordWindow() { } passwordWindow.readyForShutdown = true; - app.quit(); + + // Quit the app if we don't have a main window + if (!mainWindow) { + app.quit(); + } }); passwordWindow.on('closed', () => {