Always show "Folders" in Settings
This commit is contained in:
parent
9719194d8a
commit
cd14a1bed1
1 changed files with 4 additions and 0 deletions
|
|
@ -116,10 +116,13 @@ void SetupSections(
|
||||||
tr::lng_settings_section_filters(),
|
tr::lng_settings_section_filters(),
|
||||||
st::settingsSectionButton,
|
st::settingsSectionButton,
|
||||||
&st::settingsIconFolders)))->setDuration(0);
|
&st::settingsIconFolders)))->setDuration(0);
|
||||||
|
/*
|
||||||
if (!controller->session().data().chatsFilters().list().empty()
|
if (!controller->session().data().chatsFilters().list().empty()
|
||||||
|| Global::DialogsFiltersEnabled()) {
|
|| Global::DialogsFiltersEnabled()) {
|
||||||
|
*/
|
||||||
slided->show(anim::type::instant);
|
slided->show(anim::type::instant);
|
||||||
preload();
|
preload();
|
||||||
|
/*
|
||||||
} else {
|
} else {
|
||||||
const auto enabled = [=] {
|
const auto enabled = [=] {
|
||||||
const auto result = account->appConfig().get<bool>(
|
const auto result = account->appConfig().get<bool>(
|
||||||
|
|
@ -144,6 +147,7 @@ void SetupSections(
|
||||||
enabled
|
enabled
|
||||||
) | rpl::before_next(preloadIfEnabled));
|
) | rpl::before_next(preloadIfEnabled));
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
slided->entity()->setClickedCallback([=] {
|
slided->entity()->setClickedCallback([=] {
|
||||||
showOther(Type::Folders);
|
showOther(Type::Folders);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue