From deb9bab086da0ccbb6cb87fb0d76d7f3a2e596bb Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 3 Jan 2018 18:18:13 -0800 Subject: [PATCH] Remove duplicate showWindow method (#1918) --- main.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index 27bbee32a..c1e1c86cd 100644 --- a/main.js +++ b/main.js @@ -41,6 +41,10 @@ const config = require("./app/config"); const userConfig = require('./app/user_config'); function showWindow() { + if (!mainWindow) { + return; + } + // Using focus() instead of show() seems to be important on Windows when our window // has been docked using Aero Snap/Snap Assist. A full .show() call here will cause // the window to reposition: @@ -310,12 +314,6 @@ function showDebugLog() { } } -function showWindow() { - if (mainWindow) { - mainWindow.show(); - } -}; - function openReleaseNotes() { shell.openExternal('https://github.com/WhisperSystems/Signal-Desktop/releases/tag/v' + app.getVersion()); }