2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-03 08:05:12 +00:00

Version 4.9.1: Fix states of archive settings.

Fixes #26510.
This commit is contained in:
John Preston
2023-08-15 19:16:50 +02:00
parent 3fe9ba41ba
commit b871a29275
2 changed files with 5 additions and 5 deletions

View File

@@ -726,6 +726,7 @@ void ArchiveSettingsBox(
))->toggledChanges(
) | rpl::filter([=](bool toggled) {
const auto current = privacy->unarchiveOnNewMessageCurrent();
state->foldersWrap->toggle(!toggled, anim::type::normal);
return toggled != (current == Unarchive::None);
}) | rpl::start_with_next([=](bool toggled) {
privacy->updateUnarchiveOnNewMessage(toggled
@@ -733,7 +734,6 @@ void ArchiveSettingsBox(
: state->folders->toggled()
? Unarchive::NotInFoldersUnmuted
: Unarchive::AnyUnmuted);
state->foldersWrap->toggle(!toggled, anim::type::normal);
}, container->lifetime());
AddSkip(container);