beautiful.init(): reset theme_path if called with a table
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
69a0de3f03
commit
3145272292
|
@ -197,6 +197,7 @@ function beautiful.init(config)
|
|||
rawset(beautiful, "theme_path", dir and (dir:get_path().."/") or nil)
|
||||
theme = protected_call(dofile, config)
|
||||
elseif type(config) == 'table' then
|
||||
rawset(beautiful, "theme_path", nil)
|
||||
theme = config
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue