menubar.icon_theme: Never use nil as icon theme name
The return value for this function is used as an index in a table and Lua does not like nil as an index. The function that actually looks for icons, find_icon_theme() already falls back to "hicolor" if it does not find anything via the current theme, so fix this issue by just falling back to "hicolor" here as well. Fixes: https://github.com/awesomeWM/awesome/issues/1819 Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
d8412cb51d
commit
f0368c21c5
|
@ -70,7 +70,7 @@ local get_default_icon_theme_name = function()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return nil
|
return "hicolor"
|
||||||
end
|
end
|
||||||
|
|
||||||
local icon_theme = { mt = {} }
|
local icon_theme = { mt = {} }
|
||||||
|
|
Loading…
Reference in New Issue