From 147c9d442b0abecf4bc10d06444ff76b8ce2db96 Mon Sep 17 00:00:00 2001 From: Oren Magen Date: Tue, 13 Oct 2020 01:08:08 +0300 Subject: [PATCH] Bug fix escape 'about page' is breaking on fullscreen mode [macOS] (Issue #4540) (#4573) --- main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.js b/main.js index c80b378752..267d1a05a5 100644 --- a/main.js +++ b/main.js @@ -1192,6 +1192,13 @@ ipc.on('set-menu-bar-visibility', (event, visibility) => { ipc.on('close-about', () => { if (aboutWindow) { + // Exiting child window when on full screen mode (MacOs only) hides the main window + // Fix to issue #4540 + if (mainWindow.isFullScreen() && process.platform === 'darwin') { + mainWindow.setFullScreen(false); + mainWindow.show(); + mainWindow.setFullScreen(true); + } aboutWindow.close(); } });