mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Auto-choose first search row in PeerListBox.
This commit is contained in:
parent
aa16bcd604
commit
c79d16a0d6
1 changed files with 5 additions and 1 deletions
|
@ -1362,8 +1362,12 @@ void PeerListContent::setSearchQuery(
|
|||
}
|
||||
|
||||
void PeerListContent::submitted() {
|
||||
if (auto row = getRow(_selected.index)) {
|
||||
if (const auto row = getRow(_selected.index)) {
|
||||
_controller->rowClicked(row);
|
||||
} else if (showingSearch()) {
|
||||
if (const auto row = getRow(RowIndex(0))) {
|
||||
_controller->rowClicked(row);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue