Use different find method.
This commit is contained in:
parent
f1fccdefce
commit
e3885d504e
|
@ -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])
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue