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,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
|
||||||
|
|
Loading…
Reference in a new issue