1
0
Fork 0
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:
Andrew Simachev 2021-03-09 10:47:18 +03:00
parent 960f827dda
commit 262e42a2bf

View file

@ -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);