2
0
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:
John Preston
2020-06-18 22:04:16 +04:00
parent 4d6cc58f0d
commit 83538675ce
112 changed files with 1761 additions and 1482 deletions

View File

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