From 4ff4ed9d00c1c31e29e14b8a12575b131fbd48b4 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sun, 11 Sep 2022 06:25:04 +0300 Subject: [PATCH] [Improvement] Do not hide "mark as read" under Alt+Shift modfiers --- .../SourceFiles/settings/settings_information.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Telegram/SourceFiles/settings/settings_information.cpp b/Telegram/SourceFiles/settings/settings_information.cpp index fc8b9052f..8bc9b4d80 100644 --- a/Telegram/SourceFiles/settings/settings_information.cpp +++ b/Telegram/SourceFiles/settings/settings_information.cpp @@ -745,16 +745,6 @@ void SetupAccountsWrap( } else if (which != Qt::RightButton) { return; } - if (!state->menu && IsAltShift(raw->clickModifiers()) && !locked) { - state->menu = base::make_unique_q( - raw, - st::popupMenuWithIcons); - Window::MenuAddMarkAsReadAllChatsAction( - window, - Ui::Menu::CreateAddActionCallback(state->menu)); - state->menu->popup(QCursor::pos()); - return; - } if (session == &window->session() || state->menu) { return; } @@ -779,6 +769,9 @@ void SetupAccountsWrap( addAction(tr::lng_menu_activate(tr::now), [=] { callback({}); }, &st::menuIconProfile); + Window::MenuAddMarkAsReadAllChatsAction( + window, + Ui::Menu::CreateAddActionCallback(state->menu)); } auto logoutCallback = [=] {