2
0
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:
John Preston
2018-12-29 12:11:54 +04:00
parent df389a365c
commit 219b824338
8 changed files with 50 additions and 30 deletions

View File

@@ -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);
}