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

gui_qt/config: fix configuring extension plugins #1230

Conversation

benoit-pierre
Copy link
Member

@benoit-pierre benoit-pierre commented Apr 5, 2021

Summary of changes

Don't mutate the original configuration set, or changes won't be saved.

Closes #1180.

Pull Request Checklist

Don't mutate the original configuration set, or changes won't be saved.
@benoit-pierre benoit-pierre force-pushed the fix_extension_plugins_gui_config branch from e4e81e0 to 0051cce Compare April 5, 2021 00:34
@user202729
Copy link
Member

Good job tracking the bug down...

But would it be a potential trap for new GUI plugin developers?

@benoit-pierre
Copy link
Member Author

benoit-pierre commented Apr 5, 2021

Well, now that MultipleChoicesOption work as expected, that should not be a problem. (Unless of course said developer decides to redevelop its own version of that particular config widget).

@user202729
Copy link
Member

I was talking about people who create new GUI plugins (like the console ui)

@benoit-pierre
Copy link
Member Author

Ah. Yes, they could end up with the same issue. We might be able to work around that by changing Config.__getitem__ to return a copy.

@benoit-pierre benoit-pierre merged commit c6a2a81 into openstenoproject:master Apr 5, 2021
@benoit-pierre benoit-pierre deleted the fix_extension_plugins_gui_config branch April 5, 2021 01:19
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.

Configuration is not saved if the only change is enabling one extension plugin
3 participants