fixes and improvements in webapps
This commit is contained in:
parent
78c224ffa8
commit
be7aaa7845
|
@ -186,3 +186,17 @@ fun WebApp.showPopup(
|
|||
),
|
||||
callback
|
||||
)
|
||||
|
||||
var WebApp.requireClosingConfirmation
|
||||
get() = isClosingConfirmationEnabled
|
||||
set(value) {
|
||||
if (value) {
|
||||
enableClosingConfirmation()
|
||||
} else {
|
||||
disableClosingConfirmation()
|
||||
}
|
||||
}
|
||||
|
||||
fun WebApp.toggleClosingConfirmation() {
|
||||
requireClosingConfirmation = !requireClosingConfirmation
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue