Skip to content

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

reintroducing clear dir content of dir change

Ilian Sapundshievf1eecff600f9
diff --git a/app/reducers/app.js b/app/reducers/app.js
index 55af5a724..7900e8a2c 100644
--- a/app/reducers/app.js
+++ b/app/reducers/app.js
@@ -579,8 +579,8 @@ export const actions = {
console.time('listDirectoryPromise');
const { settings } = getState();
window.walkCanceled = false;
- // Uncommenting the following line will make all content to be cleared before loading new dir content
- // dispatch(actions.loadDirectorySuccessInt(directoryPath, [], true));
+ // Uncomment the following line will to clear all content before loading new dir content
+ dispatch(actions.loadDirectorySuccessInt(directoryPath, [], true));
dispatch(actions.showNotification(i18n.t('core:loading'), 'info', false));
PlatformIO.listDirectoryPromise(directoryPath, false)
.then(results => {