mirror of
https://github.com/nwg-piotr/nwg-shell.git
synced 2024-09-11 14:17:12 +03:00
add "interface-locale" shell data key
This commit is contained in:
parent
1f71b67e0e
commit
b5b9f4ccb4
@ -47,7 +47,11 @@ def main():
|
||||
|
||||
# "installed-version" and "updates" keys will be missing from pre-0.3.0 installs
|
||||
# we only substitute them temporarily here, w/o saving
|
||||
defaults = {"installed-version": "0.0.0", "updates": []}
|
||||
defaults = {
|
||||
"installed-version": "0.0.0",
|
||||
"updates": [],
|
||||
"interface-locale": ""
|
||||
}
|
||||
for key in defaults:
|
||||
check_key(shell_data, key, defaults[key])
|
||||
|
||||
|
@ -161,7 +161,11 @@ def main():
|
||||
# It must be a new installation. We need to init and save the shell data file.
|
||||
if not os.path.isdir(os.path.join(data_home, "nwg-shell")):
|
||||
os.makedirs(os.path.join(data_home, "nwg-shell"))
|
||||
shell_data = {"installed-version": __version__, "updates": [__version__]}
|
||||
shell_data = {
|
||||
"installed-version": __version__,
|
||||
"updates": [__version__],
|
||||
"interface-locale": ""
|
||||
}
|
||||
save_json(shell_data, shell_data_file)
|
||||
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user