This commit is contained in:
7
main.js
7
main.js
@@ -1192,6 +1192,13 @@ ipc.on('set-menu-bar-visibility', (event, visibility) => {
|
|||||||
|
|
||||||
ipc.on('close-about', () => {
|
ipc.on('close-about', () => {
|
||||||
if (aboutWindow) {
|
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();
|
aboutWindow.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user