Hide upgrade on mobile

This commit is contained in:
Hillel Coren 2021-07-07 13:29:01 +03:00
parent 741569120d
commit b88a3719ff
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class EditScaffold extends StatelessWidget {
bool isCancelEnabled = false; bool isCancelEnabled = false;
if (!state.isProPlan) { if (!state.isProPlan) {
if (isAdvancedSettings) { if (isAdvancedSettings && !isApple()) {
showUpgradeBanner = true; showUpgradeBanner = true;
if (isEnabled) { if (isEnabled) {
isCancelEnabled = true; isCancelEnabled = true;

View File

@ -684,7 +684,7 @@ class SidebarFooter extends StatelessWidget {
), ),
onPressed: () => _showUpdate(context), onPressed: () => _showUpdate(context),
), ),
if (!kReleaseMode || (isHosted(context) && !isPaidAccount(context))) if (isHosted(context) && !isPaidAccount(context) && !isApple())
IconButton( IconButton(
tooltip: isHosted(context) tooltip: isHosted(context)
? localization.upgrade ? localization.upgrade