From 4a07cf99519c43d5ea9ba41263276ac4a4b5a0d3 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Fri, 28 Apr 2023 22:45:38 -0400 Subject: [PATCH] Show "Reset Install Status" button on track-only apps --- lib/main.dart | 2 +- lib/pages/app.dart | 7 +++++-- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 3867379..0939e5e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -21,7 +21,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart'; // ignore: implementation_imports import 'package:easy_localization/src/localization.dart'; -const String currentVersion = '0.11.35'; +const String currentVersion = '0.11.36'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/lib/pages/app.dart b/lib/pages/app.dart index 2b40cdd..f105470 100644 --- a/lib/pages/app.dart +++ b/lib/pages/app.dart @@ -312,7 +312,10 @@ class _AppPageState extends State { app!.app.installedVersion = null; appsProvider.saveApps([app.app]); }, - child: Text(tr('resetInstallStatus'))); + child: Text( + tr('resetInstallStatus'), + textAlign: TextAlign.center, + )); getInstallOrUpdateButton() => TextButton( onPressed: (app?.app.installedVersion == null || @@ -410,7 +413,7 @@ class _AppPageState extends State { tooltip: tr('more')), const SizedBox(width: 16.0), Expanded( - child: !isVersionDetectionStandard && + child: (!isVersionDetectionStandard || trackOnly) && app?.app.installedVersion != null && app?.app.installedVersion == app?.app.latestVersion diff --git a/pubspec.yaml b/pubspec.yaml index 346901f..9fd310d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.11.35+157 # When changing this, update the tag in main() accordingly +version: 0.11.36+158 # When changing this, update the tag in main() accordingly environment: sdk: '>=2.18.2 <3.0.0'