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

JS-5003: fix

This commit is contained in:
Andrew Simachev 2025-02-18 13:56:38 +01:00
parent 81c0544098
commit 3332409afa
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF

View file

@ -131,7 +131,7 @@ function createWindow () {
const onClose = () => {
const { config } = ConfigManager;
if (config.hideTray) {
if (config.hideTray && (WindowManager.list.size <= 1)) {
Api.exit(mainWindow, '', false);
} else {
mainWindow.hide();