correction path thumb
build-deploy / deploy (push) Successful in 1m10s

This commit is contained in:
2026-08-01 19:54:57 +02:00
parent 9200c8c76d
commit 356a53e8e9
+4 -1
View File
@@ -10,7 +10,10 @@ namespace ModelsLib
}
public PhotoUnit(string photoPath)
{
Thumb = photoPath.Insert(photoPath.LastIndexOf("\\") + 1, "thumb\\");
var directory = Path.GetDirectoryName(photoPath);
var filename = Path.GetFileName(photoPath);
Thumb = Path.Combine(directory!, "thumb", filename);
PhotoPath = photoPath;
}