Skip to content

Commit 77fe49f

Browse files
committed
fix: normalize path to fix thumbnails on Windows
1 parent c5b3dca commit 77fe49f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useTauriListeners.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function useTauriListeners({
104104
const { path, thumbnailPath, rating, is_edited, data } = event.payload;
105105

106106
if (thumbnailPath) {
107-
thumbnailBuffer.current[path] = convertFileSrc(thumbnailPath);
107+
thumbnailBuffer.current[path] = convertFileSrc(thumbnailPath.replace(/\\/g, '/'));
108108
refs.current.markGenerated(path);
109109
} else if (data) {
110110
thumbnailBuffer.current[path] = data;

0 commit comments

Comments
 (0)