summaryrefslogtreecommitdiff
path: root/xmake/core/ui/group.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-22 22:35:14 +0800
committerruki <[email protected]>2017-12-22 09:31:26 +0800
commit0f825ce5a225f7dfba8e46e44de82c50df0b2e35 (patch)
tree2948fca0cc55a67a57ef10901a25a503828415f5 /xmake/core/ui/group.lua
parent8594fdccd6cb87909a227f6ad0d794188bc11584 (diff)
improve cui refresh
Diffstat (limited to 'xmake/core/ui/group.lua')
-rw-r--r--xmake/core/ui/group.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/xmake/core/ui/group.lua b/xmake/core/ui/group.lua
index 80f7c22b7..73236627d 100644
--- a/xmake/core/ui/group.lua
+++ b/xmake/core/ui/group.lua
@@ -22,11 +22,6 @@
-- @file group.lua
--
---[[ Console User Interface (cui) ]-----------------------------------------
-Author: Tiago Dionizio (tiago.dionizio AT gmail.com)
-$Id: group.lua 18 2007-06-21 20:43:52Z tngd $
---------------------------------------------------------------------------]]
-
-- load modules
local log = require("ui/log")
local view = require("ui/view")
@@ -262,11 +257,13 @@ function group:draw()
if v:state("visible") then
v:draw()
v:state_set("redraw", false)
+ v:_mark_refresh()
end
end
-- clear mark
self:state_set("redraw", false)
+ self:_mark_refresh()
else
-- only draw child views
@@ -274,6 +271,7 @@ function group:draw()
if v:state("visible") and v:state("redraw") then
v:draw()
v:state_set("redraw", false)
+ v:_mark_refresh()
end
end
end