mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Refresh filtered results on more dialogs.
This commit is contained in:
@@ -215,7 +215,7 @@ void ShareBox::prepare() {
|
||||
setDimensions(st::boxWideWidth, st::boxMaxListHeight);
|
||||
|
||||
_select->setQueryChangedCallback([=](const QString &query) {
|
||||
onFilterUpdate(query);
|
||||
applyFilterUpdate(query);
|
||||
});
|
||||
_select->setItemRemovedCallback([=](uint64 itemId) {
|
||||
if (const auto peer = App::peerLoaded(itemId)) {
|
||||
@@ -403,7 +403,7 @@ void ShareBox::createButtons() {
|
||||
addButton(langFactory(lng_cancel), [=] { closeBox(); });
|
||||
}
|
||||
|
||||
void ShareBox::onFilterUpdate(const QString &query) {
|
||||
void ShareBox::applyFilterUpdate(const QString &query) {
|
||||
onScrollToY(0);
|
||||
_inner->updateFilter(query);
|
||||
}
|
||||
|
Reference in New Issue
Block a user