Skip to content

Commit

Permalink
feat: change continue anyways to cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Ushie committed Apr 29, 2023
1 parent affba66 commit cfc866b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
1 change: 0 additions & 1 deletion assets/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"viewTitle": "Select an application",
"searchBarHint": "Search applications",
"selectFromStorageButton": "Select from storage",
"continueAnywayButton": "Continue anyway",
"storageButton": "Storage",
"errorMessage": "Unable to use selected application",
"downloadToast": "Download function is not available yet",
Expand Down
1 change: 0 additions & 1 deletion lib/ui/views/app_selector/app_selector_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ class _AppSelectorViewState extends State<AppSelectorView> {
)
: model.showSelectFromStorageDialog(
context,
app,
);
},
),
Expand Down
16 changes: 7 additions & 9 deletions lib/ui/views/app_selector/app_selector_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ class AppSelectorViewModel extends BaseViewModel {
locator<PatcherViewModel>().loadLastSelectedPatches();
}

Future showSelectFromStorageDialog(
BuildContext context, ApplicationWithIcon app) async {
Future showSelectFromStorageDialog(BuildContext context) async {
return showDialog(
context: context,
builder: (context) => SimpleDialog(
Expand Down Expand Up @@ -133,19 +132,18 @@ class AppSelectorViewModel extends BaseViewModel {
],
),
),
const SizedBox(height: 10),
CustomMaterialButton(
isFilled: false,
onPressed: () => selectApp(app).then(
(_) {
Navigator.pop(context);
Navigator.pop(context);
},
),
onPressed: () {
Navigator.pop(context);
Navigator.pop(context);
},
label: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const SizedBox(width: 10),
I18nText('appSelectorView.continueAnywayButton'),
I18nText('cancelButton'),
],
),
),
Expand Down

0 comments on commit cfc866b

Please sign in to comment.