Skip to content

Commit

Permalink
Fix unknown setting crash
Browse files Browse the repository at this point in the history
  • Loading branch information
whitechi73 committed Jan 29, 2024
1 parent e6b03ef commit 8658dbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ object QwQSetting {
}.readText()

fun getSetting(key: String): Setting<*> {
return settingMap[key]!!
return settingMap[key] ?: Setting<Boolean>("unknown", SettingType.BOOLEAN)
}

enum class SettingType {
Expand Down

0 comments on commit 8658dbb

Please sign in to comment.