mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Move a lot of settings to Core::Settings.
This commit is contained in:
@@ -217,8 +217,8 @@ void SessionController::toggleFiltersMenu(bool enabled) {
|
||||
|
||||
void SessionController::refreshFiltersMenu() {
|
||||
const auto enabled = !session().data().chatsFilters().list().empty();
|
||||
if (enabled != Global::DialogsFiltersEnabled()) {
|
||||
Global::SetDialogsFiltersEnabled(enabled);
|
||||
if (enabled != session().settings().dialogsFiltersEnabled()) {
|
||||
session().settings().setDialogsFiltersEnabled(enabled);
|
||||
session().saveSettingsDelayed();
|
||||
toggleFiltersMenu(enabled);
|
||||
}
|
||||
@@ -801,7 +801,7 @@ void SessionController::setActiveChatsFilter(FilterId id) {
|
||||
closeFolder();
|
||||
}
|
||||
if (Adaptive::OneColumn()) {
|
||||
Ui::showChatsList();
|
||||
Ui::showChatsList(&session());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user