mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-22 18:52:30 +01:00
Fix enum names and casings
This commit is contained in:
parent
5a8583cd86
commit
c823c525d1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user