-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sander van Harmelen
committed
Apr 11, 2015
1 parent
365251f
commit 8c37a95
Showing
1 changed file
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
8c37a95
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prior to this, it seems
display_text
was kept in-sync with thename
ifdisplay_text
was not set in the configuration. It seems that with this commit, they will not be kept in-sync if thename
changes in that situation. Is that correct, and if so, is that intentional?8c37a95
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@catsby thanks for the review! In a way you are right, but before this commit the
display_text
was actually never updated at all. If you look at the "old" code again, you'll notice that the variabledisplaytext
was set, butp.SetDisplaytext(...)
was never called to actually set/update thedisplay_text
.So this commit fixes that logic error which enables you to update the
display_text
properly, but your right that at the same time it also changes the previously intended behaviour where I meant to keep these in sync when no specific value was set fordisplay_text
.So maybe updating the code to:
would give a more expected result when changing the
name
without having specified adisplay_text
...Will create a PR to update the code accordingly, thanks again...
8c37a95
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I did not noticed that, cool. Sounds good on the new PR 👍