Skip to content

Commit dba0fbd

Browse files
committed
chore: hide the app on blur
so that window toggle works correct
1 parent 9264366 commit dba0fbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ electronApp.on('ready', () => {
4343
}
4444
});
4545

46+
app.window.on('blur', () => {
47+
app.electronApp.hide();
48+
});
49+
4650
connectStore(app);
4751
});
4852

0 commit comments

Comments
 (0)