init_var()
I made an init_var function that matches the init_pref function, only for runtime variables.
This commit is contained in:
parent
3de6e94db1
commit
3087eb9954
|
@ -47,6 +47,11 @@ def init_pref(key, value):
|
|||
if prefs.get(key, None) == None:
|
||||
prefs[key] = value
|
||||
|
||||
def init_var(key, value):
|
||||
global vars
|
||||
if vars.get(key, None) == None:
|
||||
vars[key] = value
|
||||
|
||||
|
||||
def startup():
|
||||
global plugin
|
||||
|
|
Loading…
Reference in New Issue