From 33ae64fe74a79cbb1a5146a113226f64af72ea9a Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sun, 11 Sep 2022 05:26:35 +0300 Subject: [PATCH] [Improvement] Always show folders in settings --- Telegram/SourceFiles/settings/settings_main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/settings/settings_main.cpp b/Telegram/SourceFiles/settings/settings_main.cpp index 8ceb09ffd..af2955253 100644 --- a/Telegram/SourceFiles/settings/settings_main.cpp +++ b/Telegram/SourceFiles/settings/settings_main.cpp @@ -348,7 +348,7 @@ void SetupSections( const auto preload = [=] { controller->session().data().chatsFilters().requestSuggested(); }; - const auto account = &controller->session().account(); + // const auto account = &controller->session().account(); const auto slided = container->add( object_ptr>( container, @@ -358,10 +358,13 @@ void SetupSections( st::settingsButton, { &st::menuIconShowInFolder })) )->setDuration(0); + /* if (controller->session().data().chatsFilters().has() || controller->session().settings().dialogsFiltersEnabled()) { + */ slided->show(anim::type::instant); preload(); + /* } else { const auto enabled = [=] { const auto result = account->appConfig().get( @@ -384,6 +387,7 @@ void SetupSections( enabled ) | rpl::before_next(preloadIfEnabled)); } + */ slided->entity()->setClickedCallback([=] { showOther(Folders::Id()); });