Use different find method.
This commit is contained in:
parent
f1fccdefce
commit
e3885d504e
|
@ -22,7 +22,7 @@ ComboBox {
|
||||||
}
|
}
|
||||||
onActivated: {
|
onActivated: {
|
||||||
console.warn(currentText)
|
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: {
|
Component.onCompleted: {
|
||||||
currentIndex = languageSelector.indexOfValue(Translations.languages[i18n.language])
|
currentIndex = languageSelector.indexOfValue(Translations.languages[i18n.language])
|
||||||
|
|
|
@ -69,11 +69,8 @@ Slider {
|
||||||
if (fun.nyanCat) {
|
if (fun.nyanCat) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if (appearance.themeName == "Niconico") {
|
||||||
if (appearance.themeName == "Niconico" && isMouse) {
|
return isMouse
|
||||||
return true
|
|
||||||
} else if (appearance.themeName == "Niconico") {
|
|
||||||
return false
|
|
||||||
} else {
|
} else {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue