[Improvement] Allow to view currently used usernames
This commit is contained in:
parent
99c035801d
commit
5aa0a63f8f
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_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/premium_limits_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"
|
||||||
|
|
@ -249,6 +250,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) {
|
||||||
|
if (window) {
|
||||||
|
Ui::show(
|
||||||
|
Box(PublicLinksLimitBox, window, 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