Fix for hidden logout option

This commit is contained in:
Hillel Coren 2024-02-04 18:23:37 +02:00
parent f6ca0b199f
commit 4721fe9e64
1 changed files with 6 additions and 6 deletions

View File

@ -1425,7 +1425,12 @@ void _showAbout(BuildContext context) async {
.replaceFirst(':value', state.appVersion)); .replaceFirst(':value', state.appVersion));
}, },
onLongPress: () async { onLongPress: () async {
if (kReleaseMode) { if (!kReleaseMode && supportsInAppPurchase()) {
showDialog<void>(
context: context,
builder: (context) => UpgradeDialog(),
);
} else {
showMessageDialog( showMessageDialog(
message: FLUTTER_VERSION['channel']!.toUpperCase() + message: FLUTTER_VERSION['channel']!.toUpperCase() +
'' + '' +
@ -1436,11 +1441,6 @@ void _showAbout(BuildContext context) async {
onPressed: () => store.dispatch(UserLogout()), onPressed: () => store.dispatch(UserLogout()),
), ),
]); ]);
} else {
showDialog<void>(
context: context,
builder: (context) => UpgradeDialog(),
);
} }
}, },
), ),