Commit c823c525 authored by Elias Steurer's avatar Elias Steurer 🇩🇪

Fix enum names and casings

parent 5a8583cd
Pipeline #245084164 failed with stages
in 8 seconds
......@@ -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());
}
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment