mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
CU-ez1dvf: Fix electron window activation for MacOs dock
This commit is contained in:
parent
960f827dda
commit
262e42a2bf
1 changed files with 9 additions and 0 deletions
|
@ -662,6 +662,15 @@ app.on('before-quit', (e) => {
|
|||
exit(false);
|
||||
});
|
||||
|
||||
app.on('activate', function () {
|
||||
// On OS X it's common to re-create a window in the app when the
|
||||
// dock icon is clicked and there are no other windows open.
|
||||
if (win === null) {
|
||||
createWindow();
|
||||
};
|
||||
win.show();
|
||||
});
|
||||
|
||||
function send () {
|
||||
if (win) {
|
||||
win.webContents.send.apply(win.webContents, arguments);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue