fix: Fill the preferred action

This commit is contained in:
oSumAtrIX 2023-09-30 20:10:45 +02:00
parent 36c86e22b1
commit 0492e910ea
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -71,12 +71,6 @@ class SettingsViewModel extends BaseViewModel {
actions: [ actions: [
CustomMaterialButton( CustomMaterialButton(
isFilled: false, isFilled: false,
label: I18nText('noButton'),
onPressed: () {
Navigator.of(context).pop();
},
),
CustomMaterialButton(
label: I18nText('yesButton'), label: I18nText('yesButton'),
onPressed: () { onPressed: () {
_managerAPI.setChangingToggleModified(true); _managerAPI.setChangingToggleModified(true);
@ -84,6 +78,12 @@ class SettingsViewModel extends BaseViewModel {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
), ),
CustomMaterialButton(
label: I18nText('noButton'),
onPressed: () {
Navigator.of(context).pop();
},
),
], ],
), ),
); );