2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 06:07:45 +00:00

[Improvement] Always show folders in settings

This commit is contained in:
RadRussianRus 2022-09-11 05:26:35 +03:00 committed by Eric Kotato
parent 5a2df40450
commit 33ae64fe74

View File

@ -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<Ui::SlideWrap<Ui::SettingsButton>>(
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<bool>(
@ -384,6 +387,7 @@ void SetupSections(
enabled
) | rpl::before_next(preloadIfEnabled));
}
*/
slided->entity()->setClickedCallback([=] {
showOther(Folders::Id());
});