2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix small column layout with filters side bar.

This commit is contained in:
John Preston
2020-03-18 16:14:45 +04:00
parent 4b618aeb6c
commit 455d113955
7 changed files with 41 additions and 4 deletions

View File

@@ -210,7 +210,7 @@ void SessionController::toggleFiltersMenu(bool enabled) {
} else {
_filters = nullptr;
}
_window->sideBarChanged();
_filtersMenuChanged.fire({});
}
void SessionController::refreshFiltersMenu() {
@@ -222,6 +222,10 @@ void SessionController::refreshFiltersMenu() {
}
}
rpl::producer<> SessionController::filtersMenuChanged() const {
return _filtersMenuChanged.events();
}
bool SessionController::uniqueChatsInSearchResults() const {
return session().supportMode()
&& !session().settings().supportAllSearchResults()