Skip to content

Commit 729b4fc

Browse files
committed
library: Fix SuperDialog does not display WindowDimming
1 parent ccec775 commit 729b4fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/utils/MiuixPopupUtil.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class MiuixPopupUtil {
5454
) {
5555
if (isDialogShowing.value) return
5656
isDialogShowing.value = true
57+
isWindowDimming.value = true
5758
dialogContext.value = content
5859
}
5960

@@ -66,6 +67,7 @@ class MiuixPopupUtil {
6667
show: MutableState<Boolean>,
6768
) {
6869
isDialogShowing.value = false
70+
isWindowDimming.value = false
6971
show.value = false
7072
}
7173

@@ -99,6 +101,7 @@ class MiuixPopupUtil {
99101
show: MutableState<Boolean>,
100102
) {
101103
isPopupShowing.value = false
104+
isWindowDimming.value = false
102105
show.value = false
103106
}
104107

0 commit comments

Comments
 (0)