diff --git a/src/qml/content_components/modlist/ModEntry.qml b/src/qml/content_components/modlist/ModEntry.qml index af02fdb..e7aec79 100644 --- a/src/qml/content_components/modlist/ModEntry.qml +++ b/src/qml/content_components/modlist/ModEntry.qml @@ -139,7 +139,7 @@ Rectangle { property string modSideText: modSide - visible: modSideText !== "" + visible: !StringHelpers.isNullOrWhitespace(modSideText) color: { switch (modSideText) { case "client": @@ -168,6 +168,8 @@ Rectangle { return Theme.colors.modSideServerFg; case "both": return Theme.colors.modSideBothFg; + default: + return Theme.colors.label; } } } diff --git a/src/qml/js/StringHelpers.js b/src/qml/js/StringHelpers.js index de56fc6..80a5d94 100644 --- a/src/qml/js/StringHelpers.js +++ b/src/qml/js/StringHelpers.js @@ -29,5 +29,7 @@ function capitalizeModSide(s) { return qsTr("Server Side") case "both": return qsTr("Both") + default: + return s; } } \ No newline at end of file