Merge pull request #953 from mattermost/MM-14172
[MM-14172] Fix black screen when closing window in fullscreen on a Mac
This commit is contained in:
commit
c72c30144c
|
@ -110,7 +110,15 @@ function createMainWindow(config, options) {
|
|||
}
|
||||
break;
|
||||
case 'darwin':
|
||||
// need to leave fullscreen first, then hide the window
|
||||
if (mainWindow.isFullScreen()) {
|
||||
mainWindow.once('leave-full-screen', () => {
|
||||
hideWindow(mainWindow);
|
||||
});
|
||||
mainWindow.setFullScreen(false);
|
||||
} else {
|
||||
hideWindow(mainWindow);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue