Fixed issue with window hiding on linux
This commit is contained in:
parent
014590a6a1
commit
af5d2cb54c
@ -65,7 +65,7 @@ app.toggleMenubar = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.toggleVisible = function () {
|
app.toggleVisible = function () {
|
||||||
if (process.platform === 'win32') {
|
if (process.platform !== 'darwin') {
|
||||||
if (!app.win.isMinimized()) { app.win.minimize() } else { app.win.restore() }
|
if (!app.win.isMinimized()) { app.win.minimize() } else { app.win.restore() }
|
||||||
} else {
|
} else {
|
||||||
if (isShown && !app.win.isFullScreen()) { app.win.hide() } else { app.win.show() }
|
if (isShown && !app.win.isFullScreen()) { app.win.hide() } else { app.win.show() }
|
||||||
|
Loading…
Reference in New Issue
Block a user