2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Try to open localized changelog.

This commit is contained in:
John Preston
2021-02-04 20:42:32 +04:00
parent d782ea63f8
commit e8affa85b0
5 changed files with 38 additions and 3 deletions

View File

@@ -616,7 +616,7 @@ MainMenu::MainMenu(
qsl("https://desktop.telegram.org")));
_telegram->setLinksTrusted();
_version->setRichText(textcmdLink(1, tr::lng_settings_current_version(tr::now, lt_version, currentVersionText())) + QChar(' ') + QChar(8211) + QChar(' ') + textcmdLink(2, tr::lng_menu_about(tr::now)));
_version->setLink(1, std::make_shared<UrlClickHandler>(qsl("https://desktop.telegram.org/changelog")));
_version->setLink(1, std::make_shared<UrlClickHandler>(Core::App().changelogLink()));
_version->setLink(2, std::make_shared<LambdaClickHandler>([] { Ui::show(Box<AboutBox>()); }));
_controller->session().downloaderTaskFinished(