TagSpaces is an offline, open source, document manager with tagging support
Create advanced file
kristiyandd82f009e2f393
diff --git a/data/electron/electron.api.js b/data/electron/electron.api.jsindex a896ced38..822e0383b 100644--- a/data/electron/electron.api.js+++ b/data/electron/electron.api.js@@ -402,6 +402,10 @@ define(function(require, exports, module) {var audioEvent = new CustomEvent('resume', {'detail': arg});window.dispatchEvent(audioEvent);});++ ipcRenderer.on("advanced-file", function(event, arg) {+ TSCORE.showFileCreateDialog();+ });}// Brings the TagSpaces window on top of the windowsdiff --git a/data/electron/main.js b/data/electron/main.jsindex 8f4d1aaf7..1906f3f5c 100644--- a/data/electron/main.js+++ b/data/electron/main.js@@ -99,7 +99,8 @@ app.on('ready', function(event) {if (process.platform === 'darwin') {trayIconPath = 'Contents/Resources/app/assets/trayicon.png';} else if (process.platform === 'win32') {- trayIconPath = 'resources/app/assets/trayicon.png';+ //trayIconPath = 'resources/app/assets/trayicon.png';+ trayIconPath = 'assets/trayicon.png';} else {trayIconPath = 'resources/app/assets/trayicon.png';}@@ -135,6 +136,10 @@ app.on('ready', function(event) {label: 'New Audio File',click: newAudioFile},+ {+ label: 'Create Advanced File',+ click: getAdvancedFile+ },{type: 'separator'},@@ -221,11 +226,15 @@ app.on('ready', function(event) {mainWindow.webContents.send("previous-file", "previous");}+ function getAdvancedFile() {+ mainWindow.show();+ mainWindow.webContents.send("advanced-file", "advanced");+ }+function resumePlayback() {//mainWindow.show();mainWindow.webContents.send('play-pause', true);}-});process.on('uncaughtException', function(error) {