TagSpaces is an offline, open source, document manager with tagging support
fix Open in new window from location menu opens default location (#2154)
Stanimird373ab7aab9e
diff --git a/src/renderer/hooks/CurrentLocationContextProvider.tsx b/src/renderer/hooks/CurrentLocationContextProvider.tsxindex 87a5b5dab..9b9b1d4da 100644--- a/src/renderer/hooks/CurrentLocationContextProvider.tsx+++ b/src/renderer/hooks/CurrentLocationContextProvider.tsx@@ -133,7 +133,7 @@ export const CurrentLocationContextProvider = ({);const allLocations = useRef<CommonLocation[]>(locations);- const currentLocation = useRef<string>(defaultLocationId);+ const currentLocation = useRef<string>(undefined); //defaultLocationId);const selectedLocation = useRef<CommonLocation>(undefined);const skipInitialDirList = useRef<boolean>(false);const initLocations = useRef<boolean>(false);