[MM-18007] macOS app reopens closed window on Cmd+Tab (#1110)

This commit is contained in:
Hunter Lester
2020-01-23 03:09:22 -08:00
committed by Guillermo Vayá
parent 458c3b2797
commit cf097e624f
2 changed files with 16 additions and 2 deletions

View File

@@ -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: