fix: fix redundant buttons on dialog

Signed-off-by: validcube <pun.butrach@gmail.com>
This commit is contained in:
validcube 2024-01-21 14:45:25 +07:00
parent cf1afddb9e
commit 079c0defaf
No known key found for this signature in database
GPG key ID: DBA94253E1D3F267

View file

@ -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 {