Skip to content

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

fix thumbnails windows

Stanimir1d3d8c446895
diff --git a/app/perspectives/grid-perspective/components/GridPagination.tsx b/app/perspectives/grid-perspective/components/GridPagination.tsx
index faf390058..f5aab7f04 100644
--- a/app/perspectives/grid-perspective/components/GridPagination.tsx
+++ b/app/perspectives/grid-perspective/components/GridPagination.tsx
@@ -146,7 +146,11 @@ function GridPagination(props: Props) {
meta: Array<any>
): TS.FileSystemEntry => {
const thumbEntry = { ...entry };
- let thumbPath = getThumbFileLocationForFile(entry.path, '/', false);
+ let thumbPath = getThumbFileLocationForFile(
+ entry.path,
+ PlatformIO.getDirSeparator(),
+ false
+ );
if (meta.some(metaFile => thumbPath.endsWith(metaFile.path))) {
thumbEntry.thumbPath = thumbPath;
if (PlatformIO.haveObjectStoreSupport()) {