From 81c4d4f3931449135d32485314c047ed298b87ef Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Fri, 18 Aug 2023 19:55:31 -0400 Subject: [PATCH] Fix default multi-"app change" selection bug --- lib/pages/apps.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/apps.dart b/lib/pages/apps.dart index 894967e..f8ee0e4 100644 --- a/lib/pages/apps.dart +++ b/lib/pages/apps.dart @@ -643,15 +643,15 @@ class AppsPageState extends State { label: tr('installX', args: [ plural('apps', newInstallIdsAllOrSelected.length) ]), - defaultValue: existingUpdateIdsAllOrSelected.isNotEmpty)); + defaultValue: existingUpdateIdsAllOrSelected.isEmpty)); } if (trackOnlyUpdateIdsAllOrSelected.isNotEmpty) { formItems.add(GeneratedFormSwitch('trackonlies', label: tr('markXTrackOnlyAsUpdated', args: [ plural('apps', trackOnlyUpdateIdsAllOrSelected.length) ]), - defaultValue: existingUpdateIdsAllOrSelected.isNotEmpty || - newInstallIdsAllOrSelected.isNotEmpty)); + defaultValue: existingUpdateIdsAllOrSelected.isEmpty && + newInstallIdsAllOrSelected.isEmpty)); } showDialog?>( context: context,