fix(manga-screen): Don't show track dialog automatically if manga is not favorited (dialog dismissed) (#1234)

This commit is contained in:
Cuong-Tran 2025-10-13 13:47:29 +07:00 committed by GitHub
parent 5bdd464200
commit f15ce1b433
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -477,10 +477,12 @@ class MangaScreen(
val onDismissRequest = {
screenModel.dismissDialog()
// KMK -->
if (screenModel.autoOpenTrack && screenModel.showTrackDialogAfterCategorySelection) {
screenModel.showTrackDialogAfterCategorySelection = false
screenModel.showTrackDialog()
if (successState.manga.favorite) screenModel.showTrackDialog()
}
// KMK <--
}
when (val dialog = successState.dialog) {
null -> {}