mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Add Ctrl+9 shortcut to show archive.
This commit is contained in:
committed by
John Preston
parent
a52dfe7998
commit
3bc58fb690
@@ -2953,6 +2953,16 @@ void InnerWidget::setupShortcuts() {
|
||||
App::main()->choosePeer(session().userPeerId(), ShowAtUnreadMsgId);
|
||||
return true;
|
||||
});
|
||||
request->check(Command::ShowArchive) && request->handle([=] {
|
||||
const auto folder = session().data().folderLoaded(
|
||||
Data::Folder::kId);
|
||||
if (folder && !folder->chatsList()->empty()) {
|
||||
App::wnd()->sessionController()->openFolder(folder);
|
||||
Ui::hideSettingsAndLayer();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
static const auto kPinned = {
|
||||
Command::ChatPinned1,
|
||||
|
Reference in New Issue
Block a user