Skip to content

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

feat: added new tagspaces instance from the tray menu

Ilian Sapundshiev9b3cc40bf5e2
diff --git a/app/electron-tray-menu.ts b/app/electron-tray-menu.ts
index 0070a999a..272ca3c94 100644
--- a/app/electron-tray-menu.ts
+++ b/app/electron-tray-menu.ts
@@ -45,6 +45,13 @@ export default function buildTrayIconMenu(mainPageProps: any, i18n, isMacLike) {
}
const trayMenuTemplate = [
+ {
+ label: i18n.t('openNewInstance'),
+ click: () => mainPageProps.createNewWindowInstance()
+ },
+ {
+ type: 'separator'
+ },
{
label: i18n.t('showTagSpaces') + cKey + '+Shift+W',
click: mainPageProps.showTagSpaces
diff --git a/app/main.dev.ts b/app/main.dev.ts
index 2ffc96c01..a10a8167c 100644
--- a/app/main.dev.ts
+++ b/app/main.dev.ts
@@ -354,6 +354,7 @@ function buildTrayMenu() {
{
showTagSpaces,
resumePlayback,
+ createNewWindowInstance,
openSearch: showSearch,
toggleCreateFileDialog: newTextFile,
openNextFile: getNextFile,