mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Added attention style to menu item to delete all call logs.
This commit is contained in:
parent
f16d1f034f
commit
6abce8d976
1 changed files with 6 additions and 4 deletions
|
@ -159,10 +159,12 @@ void ShowCallsBox(not_null<Window::SessionController*> 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue