Add Checkbox::set_text function.#1346
Add Checkbox::set_text function.#1346luleyleo merged 2 commits intolinebender:masterfrom luleyleo:checkbox-set-label
Conversation
|
Would the usage case in Crotchet still be covered by this if it was a builder fn |
|
Ah nevermind, I see that this is about updating the text value |
|
@ForLoveOfCats On adding setters in general to Druid: I believe Druid would benefit from such functionality. Recreating widgets to change their properties mostly works for widgets without internal state, but even those then require being properly reinitialized with |
|
I agree that mutating widgets in-tree is a reasonable thing to be doing. As this is not actually being passed a |
|
@ForLoveOfCats Sounds good! I renamed it to |
|
Missed the changelog but then it looks good to me 👍 |
|
Oops, now it should be right! |
I need this to port
Checkboxto Crochet and it seems useful enough to go into Druid directly.