Fix (BackupRestorer): avoid issue of late restoring categories
in cases where categories-depend settings/mangas being restored when that category hasn't been restored yet due to running in coroutine
This commit is contained in:
parent
4211fadb43
commit
a2da8fdd35
1 changed files with 2 additions and 1 deletions
|
|
@ -133,7 +133,8 @@ class BackupRestorer(
|
|||
}
|
||||
}
|
||||
|
||||
private fun CoroutineScope.restoreCategories(backupCategories: List<BackupCategory>) = launch {
|
||||
context(CoroutineScope)
|
||||
private /* KMK --> */suspend /* KMK <-- */ fun restoreCategories(backupCategories: List<BackupCategory>) {
|
||||
ensureActive()
|
||||
categoriesRestorer(backupCategories)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue