fix: current locale check at modal

This commit is contained in:
ardocrat
2025-05-31 09:20:46 +03:00
parent a364daf52e
commit e5548eb6f1
+1 -5
View File
@@ -173,11 +173,7 @@ impl InterfaceSettingsContent {
});
} else {
// Draw button to select language.
let is_current = if let Some(lang) = AppConfig::locale() {
lang == locale
} else {
rust_i18n::locale() == locale
};
let is_current = self.locale == locale;
if !is_current {
View::item_button(ui, View::item_rounding(index, len, true), CHECK, None, || {
rust_i18n::set_locale(locale);