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