Skip to content

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

disabling removeAllFiles on directory change

uggrock94ed8c7bfba2
diff --git a/data/js/directories.ui.js b/data/js/directories.ui.js
index c7403a794..a2259dd0e 100644
--- a/data/js/directories.ui.js
+++ b/data/js/directories.ui.js
@@ -487,7 +487,7 @@ define(function(require, exports, module) {
function listDirectory(dirPath) {
TSCORE.showLoadingAnimation();
- TSCORE.PerspectiveManager.removeAllFiles();
+ //TSCORE.PerspectiveManager.removeAllFiles();
TSCORE.IO.listDirectoryPromise(dirPath).then(function(entries) {
TSPOSTIO.listDirectory(entries);
console.log("Listing: " + dirPath + " done!");
diff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.js
index 5a1f58b73..0326177dd 100644
--- a/data/js/perspective.manager.js
+++ b/data/js/perspective.manager.js
@@ -140,13 +140,13 @@ define(function(require, exports, module) {
}
}
- function removeAllFiles() {
+ /*function removeAllFiles() {
console.log('Removing file from perspectives');
if (TSCORE.fileList && TSCORE.fileList.length > 0) {
TSCORE.fileList = [];
redrawCurrentPerspective();
}
- }
+ }*/
function updateFileUI(oldFilePath, newFilePath) {
console.log('Updating file in perspectives');
@@ -370,7 +370,7 @@ define(function(require, exports, module) {
exports.updateFileBrowserData = updateFileBrowserData;
exports.refreshFileListContainer = refreshFileListContainer;
exports.clearSelectedFiles = clearSelectedFiles;
- exports.removeAllFiles = removeAllFiles;
+ //exports.removeAllFiles = removeAllFiles;
exports.removeFileUI = removeFileUI;
exports.updateFileUI = updateFileUI;
exports.changePerspective = changePerspective;