Fix clear
This commit is contained in:
parent
9a4430ab4c
commit
f399a651c5
|
@ -66,7 +66,8 @@ local function new(args)
|
||||||
args.style = args.style or classic_style
|
args.style = args.style or classic_style
|
||||||
local ret = base(args)
|
local ret = base(args)
|
||||||
ret:connect_signal("clear::menu",function(_,vis)
|
ret:connect_signal("clear::menu",function(_,vis)
|
||||||
ret._internal.layout:reset()
|
local l = ret._internal.content_layout or ret._internal.layout
|
||||||
|
l:reset()
|
||||||
end)
|
end)
|
||||||
ret:connect_signal("_hidden::changed",function(_,item)
|
ret:connect_signal("_hidden::changed",function(_,item)
|
||||||
item.widget:emit_signal("widget::updated")
|
item.widget:emit_signal("widget::updated")
|
||||||
|
|
1
init.lua
1
init.lua
|
@ -8,4 +8,5 @@ return {
|
||||||
box = require( "radical.box" ),
|
box = require( "radical.box" ),
|
||||||
style = require( "radical.style" ),
|
style = require( "radical.style" ),
|
||||||
item_style = require( "radical.item_style" ),
|
item_style = require( "radical.item_style" ),
|
||||||
|
widgets = require( "radical.widgets" ),
|
||||||
}
|
}
|
|
@ -301,6 +301,7 @@ local function new(data)
|
||||||
real_l.item_fit = item_fit
|
real_l.item_fit = item_fit
|
||||||
real_l.setup_key_hooks = module.setup_key_hooks
|
real_l.setup_key_hooks = module.setup_key_hooks
|
||||||
real_l.setup_item = module.setup_item
|
real_l.setup_item = module.setup_item
|
||||||
|
data._internal.content_layout = l
|
||||||
return real_l
|
return real_l
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,6 @@ return {
|
||||||
scroll = require( "radical.widgets.scroll" ),
|
scroll = require( "radical.widgets.scroll" ),
|
||||||
filter = require( "radical.widgets.filter" ),
|
filter = require( "radical.widgets.filter" ),
|
||||||
fkey = require( "radical.widgets.fkey" ),
|
fkey = require( "radical.widgets.fkey" ),
|
||||||
table = require( "radical.wigdets.table" ),
|
table = require( "radical.widgets.table" ),
|
||||||
|
header = require( "radical.widgets.header" ),
|
||||||
}
|
}
|
Loading…
Reference in New Issue