mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-30 13:48:50 +08:00
execute handler after popup closed
This commit is contained in:
parent
c65784aa50
commit
de53c881a0
2
popup.go
2
popup.go
@ -90,9 +90,9 @@ func confirmationPopup(
|
|||||||
SetButtonBackgroundColor(gomu.colors.popup).
|
SetButtonBackgroundColor(gomu.colors.popup).
|
||||||
SetButtonTextColor(gomu.colors.accent).
|
SetButtonTextColor(gomu.colors.accent).
|
||||||
SetDoneFunc(func(indx int, label string) {
|
SetDoneFunc(func(indx int, label string) {
|
||||||
handler(indx, label)
|
|
||||||
gomu.pages.RemovePage("confirmation-popup")
|
gomu.pages.RemovePage("confirmation-popup")
|
||||||
gomu.popups.pop()
|
gomu.popups.pop()
|
||||||
|
handler(indx, label)
|
||||||
})
|
})
|
||||||
|
|
||||||
gomu.pages.
|
gomu.pages.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user