1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

fix main window closure

This commit is contained in:
Andrew Simachev 2024-05-06 14:40:53 +02:00
parent 71e4c50b40
commit 1bcc402f46
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8

View file

@ -114,14 +114,8 @@ function createWindow () {
e.preventDefault();
let onClose = () => {
const { config } = ConfigManager;
if (!is.macos && config.hideTray) {
Api.exit(mainWindow, '', false);
} else {
mainWindow.hide();
};
const onClose = () => {
is.macos ? mainWindow.hide() : Api.exit(mainWindow, '', false);
};
if (mainWindow.isFullScreen()) {