Skip to content

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

moving checks in the api functions

uggrock493893201f76
diff --git a/data/js/core.api.js b/data/js/core.api.js
index 0d001432c..d06082d67 100644
--- a/data/js/core.api.js
+++ b/data/js/core.api.js
@@ -214,17 +214,13 @@ define(function(require, exports, module) {
tsCoreUI.showLocationsPanel();
});
Mousetrap.bind(tsSettings.getAddRemoveTagsKeyBinding(), function() {
- if (TSCORE.selectedFiles[0]) {
- tsTagsUI.showAddTagsDialog();
- }
+ tsTagsUI.showAddTagsDialog();
});
Mousetrap.bind(tsSettings.getSearchKeyBinding(), function() {
tsSearchUI.showSearchArea();
});
Mousetrap.bind(tsSettings.getRenamingFileKeyBinding(), function() {
- if (TSCORE.selectedFiles[0]) {
- tsCoreUI.showFileRenameDialog(TSCORE.selectedFiles[0]);
- }
+ tsCoreUI.showFileRenameDialog(TSCORE.selectedFiles[0]);
});
}