This commit is contained in:
Letter N
2021-03-04 22:01:46 +08:00
parent dcab40cdb6
commit f2f97f5855
7 changed files with 198 additions and 5 deletions
+3 -2
View File
@@ -90,10 +90,11 @@
html = replacetextEx(html, "<!-- tgui:html -->\n", inline_html)
// Open the window
client << browse(html, "window=[id];[options]")
// Instruct the client to signal UI when the window is closed.
winset(client, id, "on-close=\"uiclose [id]\"")
// Detect whether the control is a browser
is_browser = winexists(client, id) == "BROWSER"
// Instruct the client to signal UI when the window is closed.
if(!is_browser)
winset(client, id, "on-close=\"uiclose [id]\"")
/**
* public