diff --git a/src/qml/Dialogs/SettingsItems/LanguageSettings.qml b/src/qml/Dialogs/SettingsItems/LanguageSettings.qml index a187240..b896375 100644 --- a/src/qml/Dialogs/SettingsItems/LanguageSettings.qml +++ b/src/qml/Dialogs/SettingsItems/LanguageSettings.qml @@ -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]) diff --git a/src/qml/UIComponents/VideoProgress.qml b/src/qml/UIComponents/VideoProgress.qml index a2a6b4c..4da9317 100644 --- a/src/qml/UIComponents/VideoProgress.qml +++ b/src/qml/UIComponents/VideoProgress.qml @@ -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 }