mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: Show "Share log" menu option even if patching has errors
This commit is contained in:
parent
d84230fa22
commit
e0c46e4268
@ -32,19 +32,20 @@ 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: {
|
||||||
0: I18nText(
|
if (!model.hasErrors)
|
||||||
'installerView.shareApkMenuOption',
|
0: I18nText(
|
||||||
child: const Text(
|
'installerView.shareApkMenuOption',
|
||||||
'',
|
child: const Text(
|
||||||
style: TextStyle(
|
'',
|
||||||
fontWeight: FontWeight.bold,
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
1: I18nText(
|
1: I18nText(
|
||||||
'installerView.shareLogMenuOption',
|
'installerView.shareLogMenuOption',
|
||||||
child: const Text(
|
child: const Text(
|
||||||
|
Loading…
Reference in New Issue
Block a user