Fixed color of attention menu items for account buttons.

This commit is contained in:
23rd 2022-04-28 17:16:58 +03:00
parent 774c3b5ba0
commit 1878061c9a
1 changed files with 2 additions and 7 deletions

View File

@ -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<Ui::PopupMenu>(
raw,