From 4721fe9e646b5a32d5b436eaa58906aff92bbbf0 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 4 Feb 2024 18:23:37 +0200 Subject: [PATCH] Fix for hidden logout option --- lib/ui/app/menu_drawer.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ui/app/menu_drawer.dart b/lib/ui/app/menu_drawer.dart index 3dd1253c2..6b2ea9db6 100644 --- a/lib/ui/app/menu_drawer.dart +++ b/lib/ui/app/menu_drawer.dart @@ -1425,7 +1425,12 @@ void _showAbout(BuildContext context) async { .replaceFirst(':value', state.appVersion)); }, onLongPress: () async { - if (kReleaseMode) { + if (!kReleaseMode && supportsInAppPurchase()) { + showDialog( + context: context, + builder: (context) => UpgradeDialog(), + ); + } else { showMessageDialog( message: FLUTTER_VERSION['channel']!.toUpperCase() + ' • ' + @@ -1436,11 +1441,6 @@ void _showAbout(BuildContext context) async { onPressed: () => store.dispatch(UserLogout()), ), ]); - } else { - showDialog( - context: context, - builder: (context) => UpgradeDialog(), - ); } }, ),