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:
parent
395fe67bd4
commit
fafd85d403
@ -36,22 +36,25 @@ 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;
|
||||||
file = obj.value("file").toString();
|
|
||||||
|
|
||||||
if (type == ScreenPlay::InstalledType::InstalledType::GodotWallpaper) {
|
if (type != ScreenPlay::InstalledType::InstalledType::WebsiteWallpaper) {
|
||||||
QFileInfo fileInfo(folder.path() + "/wallpaper.tscn");
|
file = obj.value("file").toString();
|
||||||
if (!fileInfo.exists()) {
|
|
||||||
qCritical() << "Requested file:" << fileInfo.absoluteFilePath() << "does not exist!";
|
if (type == ScreenPlay::InstalledType::InstalledType::GodotWallpaper) {
|
||||||
return false;
|
QFileInfo fileInfo(folder.path() + "/wallpaper.tscn");
|
||||||
}
|
if (!fileInfo.exists()) {
|
||||||
} else {
|
qCritical() << "Requested file:" << fileInfo.absoluteFilePath() << "does not exist!";
|
||||||
QFileInfo fileInfo(folder.path() + "/" + file);
|
return false;
|
||||||
if (!fileInfo.exists()) {
|
}
|
||||||
qCritical() << "Requested file:" << fileInfo.absoluteFilePath() << "does not exist!";
|
} else {
|
||||||
return false;
|
QFileInfo fileInfo(folder.path() + "/" + file);
|
||||||
|
if (!fileInfo.exists()) {
|
||||||
|
qCritical() << "Requested file:" << fileInfo.absoluteFilePath() << "does not exist!";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user