Label::setText default notification value

Hi all,

It would be nice if juce::Label::setText could have a default value for the notification parameter. Most of the time when I use labels I just need them to show some text without any interaction or listeners attached, so I don’t care about the notification type.

juce::Slider has the default value sendNotificationAsync and I think this value also makes sense for the label.

It’s a small optimisation, but it will save me the short bit of time of writing out this argument each time ;).

Perhaps there is a good reason for why setText shouldn’t have this default argument, no worries if that’s the case.


1 Like

I made an FR for this a long while ago: FR: Default the NotificationType in related Label and Button methods

Could be worth the vote? :slight_smile:

1 Like