From 490ec7949f0008f46132d5c12346ad3e191ca2a1 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 21 Jun 2024 14:37:37 +0400 Subject: [PATCH] Don't call hide/createWinId just to call show right after that in Window::Notifications::Default::HideAllButton --- Telegram/SourceFiles/window/notifications_manager_default.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Telegram/SourceFiles/window/notifications_manager_default.cpp b/Telegram/SourceFiles/window/notifications_manager_default.cpp index 7b4ba2306..232d972ab 100644 --- a/Telegram/SourceFiles/window/notifications_manager_default.cpp +++ b/Telegram/SourceFiles/window/notifications_manager_default.cpp @@ -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([=] {