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

rework resetting item properties on style change #565

Merged
merged 3 commits into from
Nov 13, 2023

Conversation

cmkohnen
Copy link
Collaborator

@cmkohnen cmkohnen commented Nov 10, 2023

As discussed in #563, remove the preference option in regards to item override.

For visual reasons this also removes the grouping in the preferences, as there are only three items now.
Creating items has also been made more modular using some of the logic necessary to handle reset() properly.
Also revert usage of __gtype_name__ to check for instances of Item. This allows to have future items that inherit from e. g. DataItem.

Signed-off-by: Christoph Matthias Kohnen <christoph.kohnen@disroot.org>
Signed-off-by: Christoph Matthias Kohnen <christoph.kohnen@disroot.org>
Signed-off-by: Christoph Matthias Kohnen <christoph.kohnen@disroot.org>
@cmkohnen cmkohnen linked an issue Nov 10, 2023 that may be closed by this pull request
Copy link
Owner

@sstendahl sstendahl left a comment

Choose a reason for hiding this comment

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

This works well for me, also with the intended purpose of not overwriting custom parameters. It's on this build where I found bug #567, which is not related to this particular PR.

@cmkohnen cmkohnen merged commit 7f379cc into main Nov 13, 2023
6 checks passed
@cmkohnen cmkohnen deleted the drop-perference-option branch November 13, 2023 09:51
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.

Consider removing item override on style preference option.
2 participants