fix currency selection
This commit is contained in:
@@ -53,7 +53,7 @@ class _CurrenciesState extends SettingsBaseState<CurrenciesScreen> {
|
||||
}
|
||||
|
||||
@override
|
||||
saveOption() async {
|
||||
await helper.saveCurrency(currencies[selectedItem]);
|
||||
saveOption(int index) async {
|
||||
await helper.saveCurrency(currencies[index]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,9 +38,9 @@ class LanguagesState extends SettingsBaseState<LanguagesScreen> {
|
||||
}
|
||||
|
||||
@override
|
||||
saveOption() async {
|
||||
await helper.saveLocale(languages[selectedItem]);
|
||||
await StringsLocalization.load(languages[selectedItem]);
|
||||
saveOption(int index) async {
|
||||
await helper.saveLocale(languages[index]);
|
||||
await StringsLocalization.load(languages[index]);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user