Skip to content

Commit a44dba9

Browse files
authored
Merge pull request CyberTimon#1410 from RayJW/fix/windows-thumbnail-asset-protocol
Fix Thumbnails on Windows
2 parents c5b3dca + 77fe49f commit a44dba9

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)