diff --git a/src/ui/common.tis b/src/ui/common.tis index 97aa81b73..09ffae08c 100644 --- a/src/ui/common.tis +++ b/src/ui/common.tis @@ -216,7 +216,19 @@ function getMsgboxParams() { return msgbox_params; } +// tmp workaround https://sciter.com/forums/topic/menu-not-be-hidden-when-open-dialog-on-linux/ function msgbox(type, title, text, callback=null, height=180, width=500, retry=0, contentStyle="") { + if (is_linux) { // fix menu not hidden issue + self.timer(1ms, + function() { + msgbox_(type, title, text, callback, height, width, retry, contentStyle); + }); + } else { + msgbox_(type, title, text, callback, height, width, retry, contentStyle); + } +} + +function msgbox_(type, title, text, callback, height, width, retry, contentStyle) { var has_msgbox = msgbox_params != null; if (!has_msgbox && !type) return; var remember = false;