mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-01 16:19:47 +02:00
Fix website wallpaper not included in installed
This commit is contained in:
parent
395fe67bd4
commit
fafd85d403
@ -36,9 +36,11 @@ bool ProjectFile::init()
|
||||
}
|
||||
type = typeParsed.value();
|
||||
|
||||
// Required:
|
||||
if (!obj.contains("file"))
|
||||
// File is required. Website Wallpaper doe not have a file, but a url
|
||||
if (!obj.contains("file") && type != ScreenPlay::InstalledType::InstalledType::WebsiteWallpaper)
|
||||
return false;
|
||||
|
||||
if (type != ScreenPlay::InstalledType::InstalledType::WebsiteWallpaper) {
|
||||
file = obj.value("file").toString();
|
||||
|
||||
if (type == ScreenPlay::InstalledType::InstalledType::GodotWallpaper) {
|
||||
@ -54,6 +56,7 @@ bool ProjectFile::init()
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Optional:
|
||||
if (!obj.contains("description"))
|
||||
|
Loading…
Reference in New Issue
Block a user