Fix editing info not updating UI

This commit is contained in:
Jobobby04 2022-11-29 19:59:09 -05:00
parent 08adfdc21d
commit d361a12dfc

View File

@ -478,6 +478,7 @@ class MangaInfoScreenModel(
ogDescription = description?.trimOrNull(),
ogGenre = tags?.nullIfEmpty(),
ogStatus = status ?: 0,
lastUpdate = manga.lastUpdate + 1,
)
(sourceManager.get(LocalSource.ID) as LocalSource).updateMangaInfo(manga.toSManga())
coroutineScope.launchNonCancellable {
@ -510,7 +511,7 @@ class MangaInfoScreenModel(
status.takeUnless { it == state.manga.ogStatus },
),
)
manga = manga.copy()
manga = manga.copy(lastUpdate = manga.lastUpdate + 1)
}
updateSuccessState { successState ->