Fixed issue with window hiding on linux

This commit is contained in:
neauoire 2019-11-10 11:09:50 -05:00
parent 014590a6a1
commit af5d2cb54c

View File

@ -65,7 +65,7 @@ app.toggleMenubar = function () {
}
app.toggleVisible = function () {
if (process.platform === 'win32') {
if (process.platform !== 'darwin') {
if (!app.win.isMinimized()) { app.win.minimize() } else { app.win.restore() }
} else {
if (isShown && !app.win.isFullScreen()) { app.win.hide() } else { app.win.show() }