summaryrefslogtreecommitdiff
path: root/xmake/core/ui/panel.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-19 22:47:14 +0800
committerruki <[email protected]>2018-01-19 10:43:24 +0800
commit2e300a17250c2e391cd36d5743b806877982eaf2 (patch)
tree50a2ff493734fd03763f53eb9fbeafa06cded5e2 /xmake/core/ui/panel.lua
parent41ad9ed26eec93d72782a6db633124b754fd2258 (diff)
fix refresh bug
Diffstat (limited to 'xmake/core/ui/panel.lua')
-rw-r--r--xmake/core/ui/panel.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/ui/panel.lua b/xmake/core/ui/panel.lua
index 8cacefc90..fac72a2ab 100644
--- a/xmake/core/ui/panel.lua
+++ b/xmake/core/ui/panel.lua
@@ -321,7 +321,7 @@ end
function panel:refresh()
-- need not refresh? do not refresh it
- if not self:state("refresh") then
+ if not self:state("refresh") or not self:state("visible") then
return
end