[WIP] (store|retrieve)SpecificSettings called by non-context settings#3541
Closed
markotoplak wants to merge 4 commits intobiolab:masterfrom
Closed
[WIP] (store|retrieve)SpecificSettings called by non-context settings#3541markotoplak wants to merge 4 commits intobiolab:masterfrom
markotoplak wants to merge 4 commits intobiolab:masterfrom
Conversation
Contributor
|
Put Color widget on canvas, delete it without any input connections: |
Codecov Report
@@ Coverage Diff @@
## master #3541 +/- ##
==========================================
- Coverage 83.97% 83.92% -0.06%
==========================================
Files 370 370
Lines 66941 66887 -54
==========================================
- Hits 56215 56132 -83
- Misses 10726 10755 +29 |
Member
Author
|
@ales-erjavec, thank you. So the problem is storeSpecificSettings wes only called before if the context was valid. Therefore I needed to add checks for context validity in OWFile and OWColor. So if we go forward with this we risk things breaking. I quickly searched and no add-on on my disk is using this methods. Would it be nicer if we deprecated storeSpecificSettings and used a signal "aboutToSaveData" instead? |
bf6c954 to
6ed52bd
Compare
storeSpecificSetting is now called if there is no current context
6ed52bd to
8d6e269
Compare
3 tasks
Member
Author
|
I give up. A different attempt, with a signal, is in #3567. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
storeSpecificSettings was only called with a ContextHandler. Before, if was called after packing normal settings and before packing context settings.
In #3529 I implemented a special SettingsHandler because I needed to prepare settings for saving just before saving them.
Description of changes
storeSpecificSettings is not called in SettingsHandler
TODO
Includes