Allow toggling subchannel visiblity without joining channel
This commit is contained in:
parent
4fbbb28da2
commit
90b8acfb34
1 changed files with 6 additions and 1 deletions
|
@ -262,7 +262,12 @@ impl RenderOnce for ButtonLike {
|
||||||
.active(|active| active.bg(self.style.active(cx).background))
|
.active(|active| active.bg(self.style.active(cx).background))
|
||||||
.when_some(
|
.when_some(
|
||||||
self.on_click.filter(|_| !self.disabled),
|
self.on_click.filter(|_| !self.disabled),
|
||||||
|this, on_click| this.on_click(move |event, cx| (on_click)(event, cx)),
|
|this, on_click| {
|
||||||
|
this.on_click(move |event, cx| {
|
||||||
|
cx.stop_propagation();
|
||||||
|
(on_click)(event, cx)
|
||||||
|
})
|
||||||
|
},
|
||||||
)
|
)
|
||||||
.when_some(self.tooltip, |this, tooltip| {
|
.when_some(self.tooltip, |this, tooltip| {
|
||||||
this.tooltip(move |cx| tooltip(cx))
|
this.tooltip(move |cx| tooltip(cx))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue