From e0c46e4268ab55e4cf951be3c7fdf99f6db5f5ef Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Fri, 23 Sep 2022 17:22:39 +0100 Subject: [PATCH] fix: Show "Share log" menu option even if patching has errors --- lib/ui/views/installer/installer_view.dart | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/ui/views/installer/installer_view.dart b/lib/ui/views/installer/installer_view.dart index 22bbdd4b..e806d2e6 100644 --- a/lib/ui/views/installer/installer_view.dart +++ b/lib/ui/views/installer/installer_view.dart @@ -32,19 +32,20 @@ class InstallerView extends StatelessWidget { onBackButtonPressed: () => model.onWillPop(context), actions: [ Visibility( - visible: !model.isPatching && !model.hasErrors, + visible: !model.isPatching, child: CustomPopupMenu( onSelected: (value) => model.onMenuSelection(value), children: { - 0: I18nText( - 'installerView.shareApkMenuOption', - child: const Text( - '', - style: TextStyle( - fontWeight: FontWeight.bold, + if (!model.hasErrors) + 0: I18nText( + 'installerView.shareApkMenuOption', + child: const Text( + '', + style: TextStyle( + fontWeight: FontWeight.bold, + ), ), ), - ), 1: I18nText( 'installerView.shareLogMenuOption', child: const Text(