mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ local get_default_icon_theme_name = function()
|
|||
end
|
||||
end
|
||||
end
|
||||
return nil
|
||||
return "hicolor"
|
||||
end
|
||||
|
||||
local icon_theme = { mt = {} }
|
||||
|
|
Loading…
Reference in a new issue