Bug fix escape 'about page' is breaking on fullscreen mode [macOS] (Issue #4540) (#4573)

This commit is contained in:
Oren Magen 2020-10-13 01:08:08 +03:00 committed by GitHub
parent e8649d929d
commit 147c9d442b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}
});