Skip to content

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

Create advanced file

kristiyandd442e01f0096e
diff --git a/data/electron/electron.api.js b/data/electron/electron.api.js
index 822e0383b..32fb3f4c1 100644
--- a/data/electron/electron.api.js
+++ b/data/electron/electron.api.js
@@ -97,6 +97,11 @@ define(function(require, exports, module) {
accelerator: '',
click: TSCORE.UI.showAudioRecordingDialog
},
+ {
+ label: $.i18n.t("ns.common:createAdvancedFile"),
+ accelerator: '',
+ click: TSCORE.UI.showFileCreateDialog
+ },
{
type: 'separator'
},
@@ -402,10 +407,6 @@ 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 windows
diff --git a/data/electron/main.js b/data/electron/main.js
index 7978a40b5..42119e6d2 100644
--- a/data/electron/main.js
+++ b/data/electron/main.js
@@ -135,10 +135,6 @@ app.on('ready', function(event) {
label: 'New Audio File',
click: newAudioFile
},
- {
- label: 'Create Advanced File',
- click: getAdvancedFile
- },
{
type: 'separator'
},
@@ -225,11 +221,6 @@ 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);