feat: register url scheme in settings

This commit is contained in:
ZavaruKitsu 2024-02-04 14:10:08 +03:00
parent 84c62470bb
commit 33b6f5d207
2 changed files with 8 additions and 0 deletions

View file

@ -4845,6 +4845,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"ayu_EditsHistoryMenuText" = "History";
"ayu_PeekOnlineMenuText" = "Peek Online";
"ayu_ClearDeletedMenuText" = "Clear Deleted";
"ayu_ViewDeletedMenuText" = "View Deleted";
"ayu_ViewFiltersMenuText" = "View Filters";
"ayu_PeekOnlineSuccess" = "Peeked via";
"ayu_OneViewTTL" = "one view";
@ -4883,6 +4884,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"ayu_MessageShotThemeDefault" = "Default";
"ayu_MessageShotThemeSelectTitle" = "Select message theme";
"ayu_MessageShotThemeApply" = "Apply";
"ayu_MessageShotBackground" = "Background";
"ayu_MessageShotBackgroundSelected" = "Selected";
"ayu_MessageShotShowDate" = "Show date";
"ayu_MessageShotShowReactions" = "Show reactions";
"ayu_MessageShotShowColorfulReplies" = "Show colorful replies";
@ -4907,6 +4910,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"ayu_IDCopiedToast" = "ID copied to clipboard.";
"ayu_ContextHideMessage" = "Hide";
"ayu_ContextCopyCallbackData" = "Copy Callback Data";
"ayu_RegisterURLScheme" = "Register URL scheme";
"ayu_LocalPremiumNotice" = "You're using **local** Telegram Premium.\nIt **won't** give you any benefits, except translator.\n**Enjoy the star near your nickname!**";
"ayu_SettingsWatermark" = "AyuGram developed and maintained by Radolyn Labs.";
"ayu_ConfirmationSticker" = "Do you want to send this sticker?";

View file

@ -61,6 +61,10 @@ void FillMenu(
[=] { api->cloudPassword().clearUnconfirmedPassword(); },
&st::menuIconCancel);
} else if (type == Ayu::Id()) {
addAction(
tr::ayu_RegisterURLScheme(tr::now),
[=] { Core::Application::RegisterUrlScheme(); },
&st::menuIconLinks);
addAction(
tr::lng_restart_button(tr::now),
[=] { Core::Restart(); },