fix usage of hw-default theme if none is set in OS

This commit is contained in:
Alexander Weber 2018-02-23 09:17:03 +01:00
parent 538eb2b3b8
commit 24a6980f8e

7
os.lua
View File

@ -51,9 +51,14 @@ end
-- Get given or current theme
function os_class:get_theme(theme)
if not theme and self.sysdata then
if not theme then
if self.sysdata then
theme = self.sysdata.theme
end
if not theme then
theme = self.hwdef.custom_theme
end
end
return laptop.get_theme(theme)
end