[Improvement] Allow to view currently used usernames
This commit is contained in:
parent
031c9fedb9
commit
fa4c535548
1 changed files with 8 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "main/main_account.h"
|
||||
#include "main/main_domain.h"
|
||||
#include "ui/boxes/confirm_box.h"
|
||||
#include "boxes/premium_limits_box.h"
|
||||
#include "lang/lang_cloud_manager.h"
|
||||
#include "lang/lang_instance.h"
|
||||
#include "core/application.h"
|
||||
|
|
@ -249,6 +250,13 @@ auto GenerateCodes() {
|
|||
Data::CloudThemes::SetTestingColors(now);
|
||||
Ui::Toast::Show(now ? "Testing chat theme colors!" : "Not testing..");
|
||||
});
|
||||
codes.emplace(qsl("usernames"), [](SessionController *window) {
|
||||
if (window) {
|
||||
Ui::show(
|
||||
Box(PublicLinksLimitBox, window, Fn<void()>()),
|
||||
Ui::LayerOption::KeepOther);
|
||||
}
|
||||
});
|
||||
codes.emplace(qsl("reloadlang"), [](SessionController *window) {
|
||||
Kotato::Lang::Load(
|
||||
Lang::GetInstance().baseId(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue