From c71b429e48c2f1b13eaa5a23b598d33da04e7eb9 Mon Sep 17 00:00:00 2001 From: Quang Lam Date: Mon, 5 Oct 2020 22:37:41 +0700 Subject: [PATCH] Fix the app doesn't show up when triggered with protocol (#239) --- public/electron.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/electron.js b/public/electron.js index 0851da4a..4db9e0ac 100644 --- a/public/electron.js +++ b/public/electron.js @@ -332,10 +332,12 @@ if (!gotTheLock) { if (mb && mb.window) { mb.window.send('set-input-lang', 'auto'); mb.window.send('set-input-text', text); + mb.showWindow(); } } else if (mainWindow) { mainWindow.send('set-input-lang', 'auto'); mainWindow.send('set-input-text', text); + mainWindow.show(); } } });