Mark updated feature more clear

This commit is contained in:
Imran Remtulla
2023-02-04 19:30:41 -05:00
parent 6e0f6b528e
commit ea68b97ff7
7 changed files with 11 additions and 15 deletions

View File

@@ -42,6 +42,8 @@ class _AppPageState extends State<AppPage> {
getUpdate(app.app.id);
}
var trackOnly = app?.app.additionalSettings['trackOnly'] == true;
var noVersionDetection =
app?.app.additionalSettings['noVersionDetection'] == true;
var infoColumn = Column(
mainAxisAlignment: MainAxisAlignment.center,
@@ -190,8 +192,9 @@ class _AppPageState extends State<AppPage> {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
if (app?.app.installedVersion != null &&
if (noVersionDetection &&
!trackOnly &&
app?.app.installedVersion != null &&
app?.app.installedVersion != app?.app.latestVersion)
IconButton(
onPressed: app?.downloadProgress != null
@@ -203,13 +206,6 @@ class _AppPageState extends State<AppPage> {
return AlertDialog(
title: Text(tr(
'alreadyUpToDateQuestion')),
content: Text(
tr('onlyWorksWithNonEVDApps'),
style: const TextStyle(
fontWeight:
FontWeight.bold,
fontStyle:
FontStyle.italic)),
actions: [
TextButton(
onPressed: () {

View File

@@ -662,7 +662,7 @@ class AppsPageState extends State<AppsPage> {
])),
content:
Text(
tr('onlyWorksWithNonEVDApps'),
tr('onlyWorksWithNonVersionDetectApps'),
style: const TextStyle(fontWeight: FontWeight.bold, fontStyle: FontStyle.italic),
),
actions: [
@@ -675,7 +675,7 @@ class AppsPageState extends State<AppsPage> {
onPressed: () {
HapticFeedback.selectionClick();
appsProvider.saveApps(selectedApps.map((a) {
if (a.installedVersion != null) {
if (a.installedVersion != null && a.additionalSettings['noVersionDetection'] == true) {
a.installedVersion = a.latestVersion;
}
return a;