Skip to content

Commit

Permalink
added missing value loader for keep_aspects
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisoro committed May 15, 2024
1 parent c425732 commit df975ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/params.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
; config/profiles/*.yaml and C:/Users/USERNAME/.d4lf/profiles/*.yaml
profiles=example
; Whether to keep aspects. Can be all, upgrade, none
keep_aspects=upgrade
keep_aspects=none
; Whether to run vision mode on startup or not
run_vision_mode_on_startup=True
; Which tabs to check. Note: All 6 Tabs must be unlocked!
Expand Down
11 changes: 6 additions & 5 deletions src/config/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,21 @@ def _load_params(self):
self._parsers["custom"].read(p)

self._advanced_options = AdvancedOptionsModel(
run_scripts=self._select_val("advanced_options", "run_scripts"),
run_filter=self._select_val("advanced_options", "run_filter"),
exit_key=self._select_val("advanced_options", "exit_key"),
log_lvl=self._select_val("advanced_options", "log_lvl"),
scripts=self._select_val("advanced_options", "scripts").split(","),
process_name=self._select_val("advanced_options", "process_name"),
run_filter=self._select_val("advanced_options", "run_filter"),
run_scripts=self._select_val("advanced_options", "run_scripts"),
scripts=self._select_val("advanced_options", "scripts").split(","),
)
self._char = CharModel(inventory=self._select_val("char", "inventory"))
self._general = GeneralModel(
profiles=self._select_val("general", "profiles").split(","),
run_vision_mode_on_startup=self._select_val("general", "run_vision_mode_on_startup"),
check_chest_tabs=self._select_val("general", "check_chest_tabs").split(","),
hidden_transparency=self._select_val("general", "hidden_transparency"),
keep_aspects=self._select_val("general", "keep_aspects"),
local_prefs_path=self._select_val("general", "local_prefs_path"),
profiles=self._select_val("general", "profiles").split(","),
run_vision_mode_on_startup=self._select_val("general", "run_vision_mode_on_startup"),
)

@property
Expand Down

0 comments on commit df975ad

Please sign in to comment.