Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: reopening max 2 windows on activation in mac os

Ilian Sapundshiev1fb54a962e10
diff --git a/src/main/main.ts b/src/main/main.ts
index b92bec09d..f0e232b77 100644
--- a/src/main/main.ts
+++ b/src/main/main.ts
@@ -161,7 +161,7 @@ function getSpellcheckLanguage(i18n) {
function showApp() {
var windows = BrowserWindow.getAllWindows();
windows.forEach((win, i) => {
- if (win) {
+ if (win && i < 1) {
if (win.isMinimized()) {
win.restore();
} else {