Bugfix: "releaseDateAsVersion" resets to "noVersionDetection"

Also 2 related UI fixes
This commit is contained in:
Imran Remtulla
2023-03-30 17:44:39 -04:00
parent 9fba747802
commit 6b7d962b87
2 changed files with 7 additions and 3 deletions

View File

@@ -80,9 +80,7 @@ class _AppPageState extends State<AppPage> {
),
Text(
'${tr('installedVersionX', args: [
app?.installedInfo?.versionName ??
app?.app.installedVersion ??
tr('none')
app?.app.installedVersion ?? tr('none')
])}${trackOnly ? ' ${tr('estimateInBrackets')}\n\n${tr('xIsTrackOnly', args: [
tr('app')
])}' : ''}',
@@ -249,6 +247,8 @@ class _AppPageState extends State<AppPage> {
if (e.key == 'versionDetection' && e is GeneratedFormDropdown) {
e.disabledOptKeys ??= [];
if (app?.app.installedVersion != null &&
app?.app.additionalSettings['versionDetection'] !=
'releaseDateAsVersion' &&
!appsProvider.isVersionDetectionPossible(app)) {
e.disabledOptKeys!.add('standardVersionDetection');
}