mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
JS-4473: fix
This commit is contained in:
parent
c524b27f24
commit
ebff3f9be6
1 changed files with 8 additions and 2 deletions
10
electron.js
10
electron.js
|
@ -115,12 +115,18 @@ function createWindow () {
|
|||
e.preventDefault();
|
||||
|
||||
let onClose = () => {
|
||||
is.macos ? mainWindow.hide() : Api.exit(mainWindow, '', false);
|
||||
const { config } = ConfigManager;
|
||||
|
||||
if (!is.macos && config.hideTray) {
|
||||
Api.exit(mainWindow, '', false);
|
||||
} else {
|
||||
mainWindow.hide();
|
||||
};
|
||||
};
|
||||
|
||||
if (mainWindow.isFullScreen()) {
|
||||
mainWindow.setFullScreen(false);
|
||||
mainWindow.once('leave-full-screen', onClose);
|
||||
mainWindow.once('leave-full-screen', () => onClose());
|
||||
} else {
|
||||
onClose();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue