Skip to content

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

fix manual perspective

sytolk0c4a68d2b59e
diff --git a/src/renderer/hooks/DirectoryContentContextProvider.tsx b/src/renderer/hooks/DirectoryContentContextProvider.tsx
index ab6849076..a3acb200b 100644
--- a/src/renderer/hooks/DirectoryContentContextProvider.tsx
+++ b/src/renderer/hooks/DirectoryContentContextProvider.tsx
@@ -799,7 +799,7 @@ export const DirectoryContentContextProvider = ({
directory === currentDirectoryPath.current
) {
currentPerspective.current = perspective;
- manualPerspective.current = 'unspecified';
+ manualPerspective.current = isManual ? perspective : 'unspecified';
}
savePerspective(
directory ? directory : currentDirectoryPath.current,