From 87e31c37aaaf4db0f946b7fe7d042185a3ec0f82 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 17 Sep 2022 18:11:00 -0400 Subject: [PATCH] 'Already Installed' button also takes 'Already Updated' --- lib/pages/app.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/app.dart b/lib/pages/app.dart index 7f290d4..a5cb83b 100644 --- a/lib/pages/app.dart +++ b/lib/pages/app.dart @@ -95,15 +95,15 @@ class _AppPageState extends State { child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - if (app?.app.installedVersion == null) + if (app?.app.installedVersion != app?.app.latestVersion) IconButton( onPressed: () { showDialog( context: context, builder: (BuildContext ctx) { return AlertDialog( - title: const Text( - 'App Already Installed?'), + title: Text( + 'App Already ${app?.app.installedVersion == null ? 'Installed' : 'Updated'}?'), actions: [ TextButton( onPressed: () {