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:
parent
5a2df40450
commit
33ae64fe74
@ -348,7 +348,7 @@ void SetupSections(
|
|||||||
const auto preload = [=] {
|
const auto preload = [=] {
|
||||||
controller->session().data().chatsFilters().requestSuggested();
|
controller->session().data().chatsFilters().requestSuggested();
|
||||||
};
|
};
|
||||||
const auto account = &controller->session().account();
|
// const auto account = &controller->session().account();
|
||||||
const auto slided = container->add(
|
const auto slided = container->add(
|
||||||
object_ptr<Ui::SlideWrap<Ui::SettingsButton>>(
|
object_ptr<Ui::SlideWrap<Ui::SettingsButton>>(
|
||||||
container,
|
container,
|
||||||
@ -358,10 +358,13 @@ void SetupSections(
|
|||||||
st::settingsButton,
|
st::settingsButton,
|
||||||
{ &st::menuIconShowInFolder }))
|
{ &st::menuIconShowInFolder }))
|
||||||
)->setDuration(0);
|
)->setDuration(0);
|
||||||
|
/*
|
||||||
if (controller->session().data().chatsFilters().has()
|
if (controller->session().data().chatsFilters().has()
|
||||||
|| controller->session().settings().dialogsFiltersEnabled()) {
|
|| controller->session().settings().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>(
|
||||||
@ -384,6 +387,7 @@ void SetupSections(
|
|||||||
enabled
|
enabled
|
||||||
) | rpl::before_next(preloadIfEnabled));
|
) | rpl::before_next(preloadIfEnabled));
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
slided->entity()->setClickedCallback([=] {
|
slided->entity()->setClickedCallback([=] {
|
||||||
showOther(Folders::Id());
|
showOther(Folders::Id());
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user