From 079c0defafafffc532136e976d12cf0f2223ecd7 Mon Sep 17 00:00:00 2001 From: validcube Date: Sun, 21 Jan 2024 14:45:25 +0700 Subject: [PATCH] fix: fix redundant buttons on dialog Signed-off-by: validcube --- lib/services/patcher_api.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/services/patcher_api.dart b/lib/services/patcher_api.dart index 48a431e1..da6db552 100644 --- a/lib/services/patcher_api.dart +++ b/lib/services/patcher_api.dart @@ -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 {