Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor settings cleanup #39

Merged
merged 2 commits into from
May 28, 2024
Merged

Minor settings cleanup #39

merged 2 commits into from
May 28, 2024

Conversation

stixes
Copy link
Collaborator

@stixes stixes commented May 27, 2024

On review, I found minor issues. a settings test did not run, and failed when activated. Fixed lead to clean-code based readability to settings constructor. Also change a settings reference to singleton use, rather than deep reference.

On review, I found minor issues. a settings test did not run, and failed when activated.
Fixed lead to clean-code based readability to settings constructor.
Also change a settings reference to singleton use, rather than deep reference.
@stixes stixes requested a review from Noloxs May 27, 2024 21:36
@stixes stixes self-assigned this May 27, 2024
@stixes
Copy link
Collaborator Author

stixes commented May 27, 2024

Merge if happy :)

Comment on lines 28 to 29
if not self.loadFromFile():
self.loadDefaults()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause a crash if the file loaded doesn't contain all the needed defaults.
So it is still much safer to load defaults and then overwrite them

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed 👍

@stixes stixes requested a review from Noloxs May 28, 2024 19:17
@Noloxs Noloxs merged commit 94ead67 into main May 28, 2024
1 check passed
@Noloxs Noloxs deleted the task/settings-minor-cleanup branch May 28, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants