fix: Show "Share log" menu option even if patching has errors

This commit is contained in:
Alberto Ponces 2022-09-23 17:22:39 +01:00
parent d84230fa22
commit e0c46e4268

View File

@ -32,10 +32,11 @@ class InstallerView extends StatelessWidget {
onBackButtonPressed: () => model.onWillPop(context), onBackButtonPressed: () => model.onWillPop(context),
actions: <Widget>[ actions: <Widget>[
Visibility( Visibility(
visible: !model.isPatching && !model.hasErrors, visible: !model.isPatching,
child: CustomPopupMenu( child: CustomPopupMenu(
onSelected: (value) => model.onMenuSelection(value), onSelected: (value) => model.onMenuSelection(value),
children: { children: {
if (!model.hasErrors)
0: I18nText( 0: I18nText(
'installerView.shareApkMenuOption', 'installerView.shareApkMenuOption',
child: const Text( child: const Text(