mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Added ability to open recent peers in window with middle button.
This commit is contained in:
parent
ce4a081155
commit
b7162b5fad
1 changed files with 6 additions and 0 deletions
|
@ -416,6 +416,7 @@ public:
|
|||
}
|
||||
|
||||
void rowClicked(not_null<PeerListRow*> row) override;
|
||||
void rowMiddleClicked(not_null<PeerListRow*> row) override;
|
||||
bool rowTrackPress(not_null<PeerListRow*> row) override;
|
||||
void rowTrackPressCancel() override;
|
||||
bool rowTrackPressSkipMouseSelection() override;
|
||||
|
@ -673,6 +674,11 @@ void Suggestions::ObjectListController::rowClicked(
|
|||
_chosen.fire(row->peer());
|
||||
}
|
||||
|
||||
void Suggestions::ObjectListController::rowMiddleClicked(
|
||||
not_null<PeerListRow*> row) {
|
||||
window()->showInNewWindow(row->peer());
|
||||
}
|
||||
|
||||
void Suggestions::ObjectListController::setupPlainDivider(
|
||||
rpl::producer<QString> title) {
|
||||
auto result = object_ptr<Ui::FixedHeightWidget>(
|
||||
|
|
Loading…
Add table
Reference in a new issue