mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Added attention style to menu item to delete all call logs.
This commit is contained in:
@@ -159,10 +159,12 @@ void ShowCallsBox(not_null<Window::SessionController*> window) {
|
|||||||
showSettings,
|
showSettings,
|
||||||
&st::menuIconSettings);
|
&st::menuIconSettings);
|
||||||
if (state->callsDelegate.peerListFullRowsCount() > 0) {
|
if (state->callsDelegate.peerListFullRowsCount() > 0) {
|
||||||
state->menu->addAction(
|
Ui::Menu::CreateAddActionCallback(state->menu)({
|
||||||
tr::lng_call_box_clear_all(tr::now),
|
.text = tr::lng_call_box_clear_all(tr::now),
|
||||||
clearAll,
|
.handler = clearAll,
|
||||||
&st::menuIconDelete);
|
.icon = &st::menuIconDeleteAttention,
|
||||||
|
.isAttention = true,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
state->menu->popup(QCursor::pos());
|
state->menu->popup(QCursor::pos());
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user