Skip to content

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

fix: broken folder navigator on windows

Ilian Sapundshiev6ca9d8cb392f
diff --git a/app/components/FolderContainer.tsx b/app/components/FolderContainer.tsx
index 2756564ed..88ef162de 100644
--- a/app/components/FolderContainer.tsx
+++ b/app/components/FolderContainer.tsx
@@ -432,10 +432,7 @@ class FolderContainer extends React.Component<Props, State> {
minWidth: 10
}}
>
- {extractShortDirectoryName(
- pathPart,
- PlatformIO.getDirSeparator()
- )}
+ {extractShortDirectoryName(pathPart, '/')}
<FolderSeparatorIcon />
</Button>
))}
@@ -466,7 +463,7 @@ class FolderContainer extends React.Component<Props, State> {
>
{extractShortDirectoryName(
normalizePath(normalizedCurrentDirPath),
- PlatformIO.getDirSeparator()
+ '/'
)}
<MoreVertIcon />
</Button>