sharedconfig: avoid initializing with config data
This commit is contained in:
parent
49e861f3f4
commit
3d21950918
@ -15,10 +15,10 @@ local function add_default_value(key, value)
|
||||
defaults_table[key]=value
|
||||
|
||||
local stored_value=config:load(key)
|
||||
if stored_value == nil then
|
||||
sharedstate.add(key, value)
|
||||
else
|
||||
sharedstate.add(key, stored_value)
|
||||
sharedstate.add(key, value)
|
||||
|
||||
if stored_value ~= nil then
|
||||
sharedstate.set(key, stored_value)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user