1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-14 22:42:34 +02:00

Fix website wallpaper not included in installed

This commit is contained in:
Elias Steurer 2023-11-22 11:55:21 +01:00
parent 395fe67bd4
commit fafd85d403

View File

@ -36,9 +36,11 @@ bool ProjectFile::init()
} }
type = typeParsed.value(); type = typeParsed.value();
// Required: // File is required. Website Wallpaper doe not have a file, but a url
if (!obj.contains("file")) if (!obj.contains("file") && type != ScreenPlay::InstalledType::InstalledType::WebsiteWallpaper)
return false; return false;
if (type != ScreenPlay::InstalledType::InstalledType::WebsiteWallpaper) {
file = obj.value("file").toString(); file = obj.value("file").toString();
if (type == ScreenPlay::InstalledType::InstalledType::GodotWallpaper) { if (type == ScreenPlay::InstalledType::InstalledType::GodotWallpaper) {
@ -54,6 +56,7 @@ bool ProjectFile::init()
return false; return false;
} }
} }
}
// Optional: // Optional:
if (!obj.contains("description")) if (!obj.contains("description"))