2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Add archive settings to context menu.

This commit is contained in:
John Preston
2023-08-11 16:20:38 +02:00
parent ae26c781c1
commit de4152496f
9 changed files with 199 additions and 53 deletions

View File

@@ -61,6 +61,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "window/window_adaptive.h" // Adaptive::isThreeColumn
#include "window/window_session_controller.h"
#include "window/window_controller.h"
#include "settings/settings_advanced.h"
#include "support/support_helper.h"
#include "info/info_memento.h"
#include "info/info_controller.h"
@@ -1276,6 +1277,12 @@ void Filler::fillArchiveActions() {
controller,
[folder = _folder] { return folder->chatsList(); },
_addAction);
_addAction({ .isSeparator = true });
Settings::PreloadArchiveSettings(&controller->session());
_addAction(tr::lng_context_archive_settings(tr::now), [=] {
controller->show(Box(Settings::ArchiveSettingsBox, controller));
}, &st::menuIconManage);
}
} // namespace