Fix multi-pin bar render after theme switch.

This commit is contained in:
John Preston 2020-12-24 07:59:29 +04:00
parent 375820d5cf
commit cf5cc3646a

View file

@ -45,6 +45,11 @@ MessageBar::MessageBar(not_null<QWidget*> parent, const style::MessageBar &st)
: _st(st)
, _widget(parent) {
setup();
style::PaletteChanged(
) | rpl::start_with_next([=] {
_topBarGradient = _bottomBarGradient = QPixmap();
}, _widget.lifetime());
}
void MessageBar::setup() {