Don't call hide/createWinId just to call show right after that in Window::Notifications::Default::HideAllButton

This commit is contained in:
Ilya Fedin 2024-06-21 14:37:37 +04:00 committed by John Preston
parent 671a15d763
commit 490ec7949f

View file

@ -1231,8 +1231,6 @@ HideAllButton::HideAllButton(
auto position = computePosition(st::notifyHideAllHeight);
updateGeometry(position.x(), position.y(), st::notifyWidth, st::notifyHideAllHeight);
hide();
createWinId();
style::PaletteChanged(
) | rpl::start_with_next([=] {