mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Delete old faq entries.
This commit is contained in:
@@ -191,7 +191,11 @@ void Search::setupContent() {
|
||||
return loaded;
|
||||
}) | rpl::take(1) | rpl::on_next([=] {
|
||||
for (auto i = _faqStartIndex; i < int(_entries.size()); ++i) {
|
||||
_buttonCache.erase(i);
|
||||
const auto it = _buttonCache.find(i);
|
||||
if (it != _buttonCache.end()) {
|
||||
delete it->second;
|
||||
_buttonCache.erase(it);
|
||||
}
|
||||
}
|
||||
buildIndex();
|
||||
const auto query = _searchController
|
||||
|
||||
Reference in New Issue
Block a user