mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
[Improvement] Always show folders in settings
This commit is contained in:
committed by
Eric Kotato
parent
5a2df40450
commit
33ae64fe74
@@ -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());
|
||||
});
|
||||
|
Reference in New Issue
Block a user