From fa3fb953e27331f7f8ace791aefcaada51e936dd Mon Sep 17 00:00:00 2001 From: JHubi1 Date: Sat, 8 Jun 2024 22:51:22 +0200 Subject: [PATCH] Fixed version display in settings not updating --- lib/worker/update.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/worker/update.dart b/lib/worker/update.dart index a9c5f7e..e1fdc8e 100644 --- a/lib/worker/update.dart +++ b/lib/worker/update.dart @@ -23,6 +23,10 @@ String? currentVersion; String? updateChangeLog; Future updatesSupported(Function setState, [bool takeAction = false]) async { + var tmp = (await PackageInfo.fromPlatform()).version; + setState(() { + currentVersion = tmp; + }); bool returnValue = true; var installerApps = [ "org.fdroid.fdroid",