feat(closing): fast window closing/hiding
This commit is contained in:
parent
9d5667eb00
commit
585b683380
@ -201,10 +201,7 @@ app.on("ready", () => {
|
||||
} },
|
||||
{ label: 'Quit', click: function(){
|
||||
app.isQuiting = true;
|
||||
if (sphinx)
|
||||
stop()
|
||||
else
|
||||
app.quit()
|
||||
stop()
|
||||
} }
|
||||
]);
|
||||
|
||||
@ -294,6 +291,10 @@ const stop = () => {
|
||||
return
|
||||
stopProtect = true
|
||||
|
||||
// hide on case of long exit, to prevent user clicks
|
||||
if(mainWindow)
|
||||
mainWindow.hide()
|
||||
|
||||
if(tray)
|
||||
tray.destroy()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user