From 1878061c9acbadb49a1e63d2c008170f2962ae14 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 28 Apr 2022 17:16:58 +0300 Subject: [PATCH] Fixed color of attention menu items for account buttons. --- Telegram/SourceFiles/settings/settings_information.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Telegram/SourceFiles/settings/settings_information.cpp b/Telegram/SourceFiles/settings/settings_information.cpp index d246e5f1fe..975fbd0b69 100644 --- a/Telegram/SourceFiles/settings/settings_information.cpp +++ b/Telegram/SourceFiles/settings/settings_information.cpp @@ -37,6 +37,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "main/main_account.h" #include "main/main_session.h" #include "main/main_domain.h" +#include "menu/add_action_callback_factory.h" #include "mtproto/mtproto_dc_options.h" #include "window/window_session_controller.h" #include "window/window_controller.h" @@ -551,13 +552,7 @@ void SetupAccountsWrap( } else if (which != Qt::RightButton) { return; } - const auto addAction = Window::PeerMenuCallback([&]( - Window::PeerMenuCallback::Args args) { - return state->menu->addAction( - args.text, - crl::guard(raw, std::move(args.handler)), - args.icon); - }); + const auto addAction = Menu::CreateAddActionCallback(state->menu); if (!state->menu && IsAltShift(raw->clickModifiers())) { state->menu = base::make_unique_q( raw,