2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

[Improvement] Do not hide "mark as read" under Alt+Shift modfiers

This commit is contained in:
RadRussianRus
2022-09-11 06:25:04 +03:00
committed by Eric Kotato
parent 0c3ca7995f
commit 4ff4ed9d00

View File

@@ -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<Ui::PopupMenu>(
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 = [=] {