From 6abce8d976800a2f6ca05c8151f7dff0698bbb1c Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 11 Sep 2024 12:42:26 +0300 Subject: [PATCH] Added attention style to menu item to delete all call logs. --- Telegram/SourceFiles/window/window_main_menu.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/window/window_main_menu.cpp b/Telegram/SourceFiles/window/window_main_menu.cpp index 194d366c1..0d222894a 100644 --- a/Telegram/SourceFiles/window/window_main_menu.cpp +++ b/Telegram/SourceFiles/window/window_main_menu.cpp @@ -159,10 +159,12 @@ void ShowCallsBox(not_null window) { showSettings, &st::menuIconSettings); if (state->callsDelegate.peerListFullRowsCount() > 0) { - state->menu->addAction( - tr::lng_call_box_clear_all(tr::now), - clearAll, - &st::menuIconDelete); + Ui::Menu::CreateAddActionCallback(state->menu)({ + .text = tr::lng_call_box_clear_all(tr::now), + .handler = clearAll, + .icon = &st::menuIconDeleteAttention, + .isAttention = true, + }); } state->menu->popup(QCursor::pos()); return true;