fix(manga-screen): Don't show track dialog automatically if manga is not favorited (dialog dismissed) (#1234)
This commit is contained in:
parent
5bdd464200
commit
f15ce1b433
1 changed files with 3 additions and 1 deletions
|
|
@ -477,10 +477,12 @@ class MangaScreen(
|
||||||
|
|
||||||
val onDismissRequest = {
|
val onDismissRequest = {
|
||||||
screenModel.dismissDialog()
|
screenModel.dismissDialog()
|
||||||
|
// KMK -->
|
||||||
if (screenModel.autoOpenTrack && screenModel.showTrackDialogAfterCategorySelection) {
|
if (screenModel.autoOpenTrack && screenModel.showTrackDialogAfterCategorySelection) {
|
||||||
screenModel.showTrackDialogAfterCategorySelection = false
|
screenModel.showTrackDialogAfterCategorySelection = false
|
||||||
screenModel.showTrackDialog()
|
if (successState.manga.favorite) screenModel.showTrackDialog()
|
||||||
}
|
}
|
||||||
|
// KMK <--
|
||||||
}
|
}
|
||||||
when (val dialog = successState.dialog) {
|
when (val dialog = successState.dialog) {
|
||||||
null -> {}
|
null -> {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue