Fix editing info not updating UI
This commit is contained in:
parent
08adfdc21d
commit
d361a12dfc
@ -478,6 +478,7 @@ class MangaInfoScreenModel(
|
|||||||
ogDescription = description?.trimOrNull(),
|
ogDescription = description?.trimOrNull(),
|
||||||
ogGenre = tags?.nullIfEmpty(),
|
ogGenre = tags?.nullIfEmpty(),
|
||||||
ogStatus = status ?: 0,
|
ogStatus = status ?: 0,
|
||||||
|
lastUpdate = manga.lastUpdate + 1,
|
||||||
)
|
)
|
||||||
(sourceManager.get(LocalSource.ID) as LocalSource).updateMangaInfo(manga.toSManga())
|
(sourceManager.get(LocalSource.ID) as LocalSource).updateMangaInfo(manga.toSManga())
|
||||||
coroutineScope.launchNonCancellable {
|
coroutineScope.launchNonCancellable {
|
||||||
@ -510,7 +511,7 @@ class MangaInfoScreenModel(
|
|||||||
status.takeUnless { it == state.manga.ogStatus },
|
status.takeUnless { it == state.manga.ogStatus },
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
manga = manga.copy()
|
manga = manga.copy(lastUpdate = manga.lastUpdate + 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
updateSuccessState { successState ->
|
updateSuccessState { successState ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user