TagSpaces is an offline, open source, document manager with tagging support
fix thumbgen on change current folder
sytolk8e135f16b050
diff --git a/src/renderer/hooks/DirectoryContentContextProvider.tsx b/src/renderer/hooks/DirectoryContentContextProvider.tsxindex fa45d574f..6f801a264 100644--- a/src/renderer/hooks/DirectoryContentContextProvider.tsx+++ b/src/renderer/hooks/DirectoryContentContextProvider.tsx@@ -531,9 +531,12 @@ export const DirectoryContentContextProvider = ({) {if (dirEntries) {const entries = dirEntries.filter((e) => e !== undefined);+ const isNotFromCurrentDir = entries.some(+ (e) => !e.path.startsWith(currentDirectoryPath.current),+ );if (entries.length > 0 &&- entries[0].path.startsWith(currentDirectoryPath.current)+ !isNotFromCurrentDir //entries[0].path.startsWith(currentDirectoryPath.current)) {//const currDirEntries = currentDirEntries ? currentDirEntries : currentDirectoryEntries;if (diff --git a/tests/e2e/folderprops.pw.e2e.js b/tests/e2e/folderprops.pw.e2e.jsindex 78660ab62..e502eb2f2 100644--- a/tests/e2e/folderprops.pw.e2e.js+++ b/tests/e2e/folderprops.pw.e2e.js@@ -275,6 +275,7 @@ test.describe('TST02 - Folder properties', () => {true,5000,);+ await clearDataStorage();});test('TST0218 - Set and remove predefined background gradient for folder [web,minio,electron,_pro]', async () => {@@ -339,6 +340,10 @@ test.describe('TST02 - Folder properties', () => {});test('TST0220 - Set and remove predefined folder background [web,minio,electron,_pro]', async () => {+ await openContextEntryMenu(+ getGridFileSelector('empty_folder'),+ 'showProperties',+ );await openContextEntryMenu(getGridFileSelector('empty_folder'),'openDirectory',