TagSpaces is an offline, open source, document manager with tagging support
stop directory watching on multiple file operations
uggrock10a30ddc33bf
diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 732516070..07e38cf14 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -609,6 +609,9 @@ define(function(require, exports, module) {$.i18n.t('ns.dialogs:fileDeleteTitleConfirm'),$.i18n.t(dlgConfirmMsgId, {selectedFiles: selFiles}),function() {+ if (TSCORE.IO.stopWatchingDirectories) {+ TSCORE.IO.stopWatchingDirectories();+ }TSCORE.IOUtils.deleteFiles(TSCORE.Utils.getUniqueSelectedFiles());});@@ -697,6 +700,9 @@ define(function(require, exports, module) {filePath = TSCORE.selectedFiles[i];fileOperations.push(TSCORE.IO.renameFilePromise(filePath, newFilePath));}+ if (TSCORE.IO.stopWatchingDirectories) {+ TSCORE.IO.stopWatchingDirectories();+ }Promise.all(fileOperations).then(function(success) {// TODO handle moving sidecar filesTSCORE.hideWaitingDialog();@@ -718,6 +724,9 @@ define(function(require, exports, module) {var filePath = TSCORE.selectedFiles[i];fileOperations.push(TSCORE.IO.copyFilePromise(filePath, newFilePath));}+ if (TSCORE.IO.stopWatchingDirectories) {+ TSCORE.IO.stopWatchingDirectories();+ }Promise.all(fileOperations).then(function(success) {// TODO handle copying sidecar filesTSCORE.hideWaitingDialog();