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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user