Use init instead of add, less confusing
This commit is contained in:
parent
3d21950918
commit
74671b21c5
@ -15,7 +15,7 @@ local function add_default_value(key, value)
|
|||||||
defaults_table[key]=value
|
defaults_table[key]=value
|
||||||
|
|
||||||
local stored_value=config:load(key)
|
local stored_value=config:load(key)
|
||||||
sharedstate.add(key, value)
|
sharedstate.init(key, value)
|
||||||
|
|
||||||
if stored_value ~= nil then
|
if stored_value ~= nil then
|
||||||
sharedstate.set(key, stored_value)
|
sharedstate.set(key, stored_value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user