awful.menu: fix auto_expand attribute copy between parent and child
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
37d2fb6781
commit
b282bf0086
|
@ -268,8 +268,8 @@ function new(menu, parent, num)
|
||||||
data.theme = parent and parent.theme or load_theme(menu)
|
data.theme = parent and parent.theme or load_theme(menu)
|
||||||
data.parent = parent
|
data.parent = parent
|
||||||
data.child = {}
|
data.child = {}
|
||||||
if parent and parent.auto_expand then
|
if parent then
|
||||||
data.auto_expand = true
|
data.auto_expand = parent.auto_expand
|
||||||
elseif menu.auto_expand ~= nil then
|
elseif menu.auto_expand ~= nil then
|
||||||
data.auto_expand = menu.auto_expand
|
data.auto_expand = menu.auto_expand
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue