1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Fix enum names and casings

This commit is contained in:
Elias Steurer 2021-01-21 18:38:39 +01:00
parent 5a8583cd86
commit c823c525d1
2 changed files with 7 additions and 6 deletions

View File

@ -175,6 +175,7 @@ void InstalledListModel::loadInstalledContent()
continue;
if (GlobalVariables::getAvailableTypes().contains(obj->value("type").toString())) {
if (GlobalVariables::getAvailableTypes().contains(obj->value("type").toString(), Qt::CaseInsensitive)) {
emit addInstalledItem(*obj, item.baseName());
}

View File

@ -189,27 +189,27 @@ QString BaseWindow::loadFromFile(const QString& filename)
BaseWindow::WallpaperType BaseWindow::parseWallpaperType(const QString& type)
{
if (type.contains("VideoWallpaper", Qt::CaseInsensitive)) {
if (type.contains("videoWallpaper", Qt::CaseInsensitive)) {
return (BaseWindow::WallpaperType::Video);
}
if (type.contains("QmlWallpaper", Qt::CaseInsensitive)) {
if (type.contains("qmlWallpaper", Qt::CaseInsensitive)) {
return (BaseWindow::WallpaperType::Qml);
}
if (type.contains("HtmlWallpaper", Qt::CaseInsensitive)) {
if (type.contains("htmlWallpaper", Qt::CaseInsensitive)) {
return (BaseWindow::WallpaperType::Html);
}
if (type.contains("GodotWallpaper", Qt::CaseInsensitive)) {
if (type.contains("godotWallpaper", Qt::CaseInsensitive)) {
return (BaseWindow::WallpaperType::Godot);
}
if (type.contains("GifWallpaper", Qt::CaseInsensitive)) {
if (type.contains("gifWallpaper", Qt::CaseInsensitive)) {
return (BaseWindow::WallpaperType::Gif);
}
if (type.contains("WebsiteWallpaper", Qt::CaseInsensitive)) {
if (type.contains("websiteWallpaper", Qt::CaseInsensitive)) {
return (BaseWindow::WallpaperType::Website);
}