Fix: Batch update when auto-update is disabled

This commit is contained in:
machiav3lli 2022-07-06 02:16:18 +02:00
parent 1fe09ccc2a
commit 6f7195047d

View File

@ -427,7 +427,7 @@ class SyncService : ConnectionService<SyncService.Binder>() {
* @see SyncService.displayUpdatesNotification * @see SyncService.displayUpdatesNotification
*/ */
private fun batchUpdate(productItems: List<ProductItem>, install: Boolean = false) { private fun batchUpdate(productItems: List<ProductItem>, install: Boolean = false) {
if (Preferences[Preferences.Key.InstallAfterSync]) scope.launch { scope.launch {
// run startUpdate on every item // run startUpdate on every item
productItems.map { productItem -> productItems.map { productItem ->
Triple( Triple(