mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix archive in Main Menu context menu.
This commit is contained in:
parent
8c97e915ec
commit
219671a3bc
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue