1
0
Fork 0

Use different find method.

This commit is contained in:
namedkitten 2020-04-28 01:49:26 +01:00
parent f1fccdefce
commit e3885d504e
2 changed files with 3 additions and 6 deletions

View file

@ -22,7 +22,7 @@ ComboBox {
}
onActivated: {
console.warn(currentText)
i18n.language = Object.keys(Translations.languages).find(key => Translations.languages[key] === currentText)
i18n.language = Object.keys(Translations.languages).filter(function(key) {return Translations.languages[key] === currentText})[0];
}
Component.onCompleted: {
currentIndex = languageSelector.indexOfValue(Translations.languages[i18n.language])

View file

@ -69,11 +69,8 @@ Slider {
if (fun.nyanCat) {
return true
}
if (appearance.themeName == "Niconico" && isMouse) {
return true
} else if (appearance.themeName == "Niconico") {
return false
if (appearance.themeName == "Niconico") {
return isMouse
} else {
return true
}