[MM-18007] macOS app reopens closed window on Cmd+Tab (#1110)
This commit is contained in:

committed by
Guillermo Vayá

parent
458c3b2797
commit
cf097e624f
@@ -146,11 +146,11 @@ function createMainWindow(config, options) {
|
||||
// need to leave fullscreen first, then hide the window
|
||||
if (mainWindow.isFullScreen()) {
|
||||
mainWindow.once('leave-full-screen', () => {
|
||||
hideWindow(mainWindow);
|
||||
app.hide();
|
||||
});
|
||||
mainWindow.setFullScreen(false);
|
||||
} else {
|
||||
hideWindow(mainWindow);
|
||||
app.hide();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user