diff --git a/Telegram/SourceFiles/window/window_main_menu.cpp b/Telegram/SourceFiles/window/window_main_menu.cpp index a5ef50e1a..d77903ad3 100644 --- a/Telegram/SourceFiles/window/window_main_menu.cpp +++ b/Telegram/SourceFiles/window/window_main_menu.cpp @@ -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([] { Ui::show(Box()); })); _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(qsl("https://github.com/kotatogram/kotatogram-desktop"))); - _version->setLink(2, std::make_shared([] { Ui::show(Box()); })); - + subscribe(_controller->session().downloaderTaskFinished(), [=] { update(); }); subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(Notify::PeerUpdate::Flag::UserPhoneChanged, [this](const Notify::PeerUpdate &update) { if (update.peer->isSelf()) {