mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 05:23:28 +01:00 
			
		
		
		
	Bugfix: Mass install not working
This commit is contained in:
		| @@ -14,7 +14,7 @@ import 'package:workmanager/workmanager.dart'; | |||||||
| import 'package:dynamic_color/dynamic_color.dart'; | import 'package:dynamic_color/dynamic_color.dart'; | ||||||
| import 'package:device_info_plus/device_info_plus.dart'; | import 'package:device_info_plus/device_info_plus.dart'; | ||||||
|  |  | ||||||
| const String currentVersion = '0.6.0'; | const String currentVersion = '0.6.1'; | ||||||
| const String currentReleaseTag = | const String currentReleaseTag = | ||||||
|     'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES |     'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES | ||||||
|  |  | ||||||
|   | |||||||
| @@ -310,15 +310,20 @@ class AppsPageState extends State<AppsPage> { | |||||||
|                                     message: |                                     message: | ||||||
|                                         '${existingUpdateIdsAllOrSelected.length} update${existingUpdateIdsAllOrSelected.length == 1 ? '' : 's'} and ${newInstallIdsAllOrSelected.length} new install${newInstallIdsAllOrSelected.length == 1 ? '' : 's'}.', |                                         '${existingUpdateIdsAllOrSelected.length} update${existingUpdateIdsAllOrSelected.length == 1 ? '' : 's'} and ${newInstallIdsAllOrSelected.length} new install${newInstallIdsAllOrSelected.length == 1 ? '' : 's'}.', | ||||||
|                                     items: formInputs, |                                     items: formInputs, | ||||||
|                                     defaultValues: const ['true'], |                                     defaultValues: [ | ||||||
|  |                                       'true', | ||||||
|  |                                       existingUpdateIdsAllOrSelected.isEmpty | ||||||
|  |                                           ? 'true' | ||||||
|  |                                           : '' | ||||||
|  |                                     ], | ||||||
|                                     initValid: true, |                                     initValid: true, | ||||||
|                                   ); |                                   ); | ||||||
|                                 }).then((values) { |                                 }).then((values) { | ||||||
|                               if (values != null) { |                               if (values != null) { | ||||||
|                                 bool shouldInstallUpdates = |                                 bool shouldInstallUpdates = | ||||||
|                                     values.length < 2 || values[0] == 'true'; |                                     values.isEmpty || values[0] == 'true'; | ||||||
|                                 bool shouldInstallNew = |                                 bool shouldInstallNew = values.isEmpty || | ||||||
|                                     values.length >= 2 && values[1] == 'true'; |                                     (values.length >= 2 && values[1] == 'true'); | ||||||
|                                 settingsProvider |                                 settingsProvider | ||||||
|                                     .getInstallPermission() |                                     .getInstallPermission() | ||||||
|                                     .then((_) { |                                     .then((_) { | ||||||
|   | |||||||
| @@ -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 | # 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 | # 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. | # of the product and file versions while build-number is used as the build suffix. | ||||||
| version: 0.6.0+44 # When changing this, update the tag in main() accordingly | version: 0.6.1+45 # When changing this, update the tag in main() accordingly | ||||||
|  |  | ||||||
| environment: | environment: | ||||||
|   sdk: '>=2.18.2 <3.0.0' |   sdk: '>=2.18.2 <3.0.0' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user