Moved "About" box link to app name instead of dedicated link

This commit is contained in:
Eric Kotato 2019-10-01 21:12:12 +03:00
parent c748883bd3
commit f081bab0cb

View file

@ -201,14 +201,12 @@ MainMenu::MainMenu(
refreshMenu();
refreshBackground();
_telegram->setMarkedText(Ui::Text::Link(
qsl("Kotatogram Desktop"),
qsl("https://t.me/kotatogram")));
_telegram->setRichText(textcmdLink(1, qsl("Kotatogram Desktop")));
_telegram->setLink(1, std::make_shared<LambdaClickHandler>([] { Ui::show(Box<AboutBox>()); }));
_telegram->setLinksTrusted();
_version->setRichText(textcmdLink(1, currentVersionText()) + QChar(' ') + QChar(8211) + QChar(' ') + textcmdLink(2, tr::lng_menu_about(tr::now)));
_version->setRichText(textcmdLink(1, currentVersionText()));
_version->setLink(1, std::make_shared<UrlClickHandler>(qsl("https://github.com/kotatogram/kotatogram-desktop")));
_version->setLink(2, std::make_shared<LambdaClickHandler>([] { Ui::show(Box<AboutBox>()); }));
subscribe(_controller->session().downloaderTaskFinished(), [=] { update(); });
subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(Notify::PeerUpdate::Flag::UserPhoneChanged, [this](const Notify::PeerUpdate &update) {
if (update.peer->isSelf()) {