now sPhone.getTheme returns default if the config is deleted

This commit is contained in:
Ale32bit 2016-10-30 21:14:02 +01:00 committed by GitHub
parent 689c44ae10
commit 279758a48c

View file

@ -136,8 +136,11 @@ local function kernel()
error("bad arguement: double expected, got nil",2) error("bad arguement: double expected, got nil",2)
end end
local n = config.read(fileTheme, id) local n = config.read(fileTheme, id)
if n then
return n return n
end end
return sPhone.defaultTheme[id]
end
function sPhone.setDefaultApp(app, path) function sPhone.setDefaultApp(app, path)
if not path then if not path then