mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 03:00:57 +00:00
make show window behaving a little better
This commit is contained in:
parent
f0b8ed36b4
commit
9c19a65e4a
1 changed files with 5 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ function createWindow() {
|
|||
}
|
||||
|
||||
function showApp() {
|
||||
mainWin.show();
|
||||
showOrFocus(mainWin);
|
||||
}
|
||||
function quitApp() {
|
||||
app.isQuiting = true;
|
||||
|
|
@ -142,6 +142,10 @@ function showOrFocus(win) {
|
|||
} else {
|
||||
win.show();
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
win.focus();
|
||||
}, 60);
|
||||
}
|
||||
|
||||
// Make it a single instance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue