now sPhone.getTheme returns default if the config is deleted
This commit is contained in:
parent
689c44ae10
commit
279758a48c
1 changed files with 4 additions and 1 deletions
|
@ -136,7 +136,10 @@ local function kernel()
|
|||
error("bad arguement: double expected, got nil",2)
|
||||
end
|
||||
local n = config.read(fileTheme, id)
|
||||
return n
|
||||
if n then
|
||||
return n
|
||||
end
|
||||
return sPhone.defaultTheme[id]
|
||||
end
|
||||
|
||||
function sPhone.setDefaultApp(app, path)
|
||||
|
|
Loading…
Reference in a new issue