Disable mark as updated for enhanced detect apps

This commit is contained in:
Imran Remtulla
2022-12-04 16:58:04 -05:00
parent 098428dac9
commit 66cc7f059f
3 changed files with 6 additions and 4 deletions

View File

@@ -73,7 +73,7 @@
"changeX": "Change {}",
"installUpdateApps": "Install/Update Apps",
"installUpdateSelectedApps": "Install/Update Selected Apps",
"onlyAppliesToInstalledAndOutdatedApps": "Only applies to installed but out of date Apps",
"onlyAppliesToInstalledAndOutdatedApps": "Only applies to installed but out of date Apps whose install status cannot be automatically detected.",
"markXSelectedAppsAsUpdated": "Mark {} Selected Apps as Updated?",
"no": "No",
"yes": "Yes",

View File

@@ -141,7 +141,9 @@ class _AppPageState extends State<AppPage> {
children: [
if (app?.app.installedVersion != null &&
app?.app.trackOnly == false &&
app?.app.installedVersion != app?.app.latestVersion)
app?.app.installedVersion !=
app?.app.latestVersion &&
app?.app.enhancedVersionDetection != true)
IconButton(
onPressed: app?.downloadProgress != null
? null

View File

@@ -533,8 +533,8 @@ class AppsPageState extends State<AppsPage> {
.selectionClick();
appsProvider
.saveApps(selectedApps.map((a) {
if (a.installedVersion !=
null) {
if (a.installedVersion != null &&
!a.enhancedVersionDetection) {
a.installedVersion = a.latestVersion;
}
return a;