diff options
author | Neil Z. SHAO <initialneil@gmail.com> | 2015-11-27 06:52:33 +0300 |
---|---|---|
committer | Neil Z. SHAO <initialneil@gmail.com> | 2015-11-27 06:52:33 +0300 |
commit | 003380cd07c818088c78fefd3ee71e323203094e (patch) | |
tree | 752a57adddad2812323e6d34528bc945927f1743 | |
parent | 0e43c1e96bd3c8cf10158c9bcc32f21775bb7276 (diff) |
check given window visible
for given window to display, make sure the window is visible
-rw-r--r-- | init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1385,6 +1385,10 @@ local function display(...) else w = w or qtwidget.newwindow(x,y,legend) end + if w.window and not w.window.visible then + -- make sure window is visible + w.window.visible = true + end if w.isclosure then -- window was created with gui, just update closure local closure = w |