TagSpaces is an offline, open source, document manager with tagging support
fix read only location issue
sytolka482c58d7c12
diff --git a/src/renderer/hooks/DirectoryContentContextProvider.tsx b/src/renderer/hooks/DirectoryContentContextProvider.tsxindex 235ef8cfa..d842694c0 100644--- a/src/renderer/hooks/DirectoryContentContextProvider.tsx+++ b/src/renderer/hooks/DirectoryContentContextProvider.tsx@@ -836,11 +836,15 @@ export const DirectoryContentContextProvider = ({directoryPath,location.getDirSeparator(),);- await location.saveTextFilePromise(- { path: metaFilePath, locationID: location.uuid },- content,- true,- );+ try {+ await location.saveTextFilePromise(+ { path: metaFilePath, locationID: location.uuid },+ content,+ true,+ );+ } catch (e) {+ console.log(e);+ }}// Set current directory entries