Skip to content

Commit

Permalink
fix: fix redundant buttons on dialog
Browse files Browse the repository at this point in the history
Signed-off-by: validcube <pun.butrach@gmail.com>
  • Loading branch information
validcube committed Jan 21, 2024
1 parent cf1afdd commit 079c0de
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/services/patcher_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,14 @@ class PatcherAPI {
Navigator.pop(context);
},
child: I18nText('cancelButton'),
)
else
TextButton(
onPressed: () {
Navigator.pop(context);
},
child: I18nText('cancelButton'),
),
TextButton(
onPressed: () {
Navigator.pop(context);
},
child: I18nText('cancelButton'),
),
if (isFixable)
FilledButton(
onPressed: () async {
Expand Down

0 comments on commit 079c0de

Please sign in to comment.