Skip to content

Commit

Permalink
Fix loading of default values for multi-profile configs #112
Browse files Browse the repository at this point in the history
  • Loading branch information
bpozdena committed Aug 7, 2023
1 parent 4da3e97 commit 2969f8e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/OneDriveGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -2908,10 +2908,12 @@ def create_global_config():
if "free_space" not in profiles[profile]: # add 'free_space' value if missing from older versions
profiles[profile]["free_space"] = _default_profile_config["free_space"]

# Load default Onedrive values
profiles[profile].update(default_od_config)
# # Load default Onedrive values
profiles[profile]["onedrive"] = {}
profiles[profile]["onedrive"].update(default_od_config["onedrive"])

# # Load user values from config

# Load user values from config
profiles[profile]["onedrive"].update(od_config["onedrive"])

# this option is not supported since OneDrive v2.4.20 - #42
Expand Down

0 comments on commit 2969f8e

Please sign in to comment.