2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix archive in Main Menu context menu.

This commit is contained in:
John Preston
2024-07-04 12:01:59 +04:00
parent 8c97e915ec
commit 219671a3bc

View File

@@ -1472,7 +1472,8 @@ void Filler::fillArchiveActions() {
const auto controller = _controller;
const auto hidden = controller->session().settings().archiveCollapsed();
{
const auto inmenu = controller->session().settings().archiveInMainMenu();
if (!inmenu) {
const auto text = hidden
? tr::lng_context_archive_expand(tr::now)
: tr::lng_context_archive_collapse(tr::now);
@@ -1481,7 +1482,6 @@ void Filler::fillArchiveActions() {
controller->session().saveSettingsDelayed();
}, hidden ? &st::menuIconExpand : &st::menuIconCollapse);
}
const auto inmenu = controller->session().settings().archiveInMainMenu();
{
const auto text = inmenu
? tr::lng_context_archive_to_list(tr::now)