Skip to content

TextSymbolSettings: Fix initial state of standard buttons - #2308

Merged
dg0yt merged 2 commits into
OpenOrienteering:masterfrom
dl3sdo:text-symbol-settings
Jan 10, 2025
Merged

TextSymbolSettings: Fix initial state of standard buttons#2308
dg0yt merged 2 commits into
OpenOrienteering:masterfrom
dl3sdo:text-symbol-settings

Conversation

@dl3sdo

Copy link
Copy Markdown
Member

When entering the text symbol settings dialog the 'OK' and 'Reset' buttons where initially enabled.
Don't misuse the framingCheckClicked() function to enable/disable the framing_widget tab in updateGeneralContents() as framingCheckClicked() will signal modified properties.

dl3sdoand others added 2 commits December 13, 2024 11:29
When entering the text symbol settings dialog the 'OK' and 'Reset'
buttons where initially enabled.
Don't misuse the framingCheckClicked() function to enable/disable the
framing_widget tab in updateGeneralContents() as framingCheckClicked()
will signal modified properties.
@dg0yt

Copy link
Copy Markdown
Member

IWYU is somewhat sensitive to versions. I tried to reflect the actual usage.

IMO the problematic pattern was restoring react_to_change to true instead of to the original value, given nested scopes of react_to_change being temporarily false. But this PR dissolves a nested scope which was causing a problem. Fine, thanks.

@dg0yt
dg0yt merged commit 05cf531 into OpenOrienteering:masterJan 10, 2025
@dl3sdo
dl3sdo deleted the text-symbol-settings branch January 11, 2025 13:08
lpechacek pushed a commit to lpechacek/mapper that referenced this pull request Oct 15, 2025
…eering#2308)
When entering the text symbol settings dialog the 'OK' and 'Reset'
buttons where initially enabled.
Don't misuse the framingCheckClicked() function to enable/disable the
framing_widget tab in updateGeneralContents() as framingCheckClicked()
will signal modified properties.
Sign up for freeto 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

@dl3sdo@dg0yt