Skip to content

Commit

Permalink
fix: Show "Share log" menu option even if patching has errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ponces committed Sep 23, 2022
1 parent d84230f commit e0c46e4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/ui/views/installer/installer_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,20 @@ class InstallerView extends StatelessWidget {
onBackButtonPressed: () => model.onWillPop(context),
actions: <Widget>[
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(
Expand Down

0 comments on commit e0c46e4

Please sign in to comment.