控件更新时改回先刷新hide状态再选择是否update

This commit is contained in:
MrZ626
2021-06-22 12:28:15 +08:00
parent 3571ef404c
commit 70a41855d1

View File

@@ -1383,13 +1383,13 @@ end
function WIDGET.update()
for _,W in next,WIDGET.active do
if W.update then W:update()end
if W.hideF then
W.hide=W.hideF()
if W.hide and W==WIDGET.sel then
WIDGET.unFocus(true)
end
end
if W.update then W:update()end
end
end
local widgetCanvas