fix usage of hw-default theme if none is set in OS
This commit is contained in:
parent
538eb2b3b8
commit
24a6980f8e
9
os.lua
9
os.lua
@ -51,8 +51,13 @@ end
|
||||
|
||||
-- Get given or current theme
|
||||
function os_class:get_theme(theme)
|
||||
if not theme and self.sysdata then
|
||||
theme = self.sysdata.theme
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user