This commit is contained in:
parent
e8649d929d
commit
147c9d442b
1 changed files with 7 additions and 0 deletions
7
main.js
7
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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue