mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Removed text commands from main menu.
This commit is contained in:
parent
a5d4746202
commit
5b569718ec
1 changed files with 14 additions and 2 deletions
|
@ -625,8 +625,20 @@ MainMenu::MainMenu(
|
|||
qsl("Telegram Desktop"),
|
||||
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>(Core::App().changelogLink()));
|
||||
_version->setMarkedText(
|
||||
Ui::Text::Link(
|
||||
tr::lng_settings_current_version(
|
||||
tr::now,
|
||||
lt_version,
|
||||
currentVersionText()),
|
||||
{}) // Link 1.
|
||||
.append(QChar(' '))
|
||||
.append(QChar(8211))
|
||||
.append(QChar(' '))
|
||||
.append(Ui::Text::Link(tr::lng_menu_about(tr::now), {}))); // Link 2.
|
||||
_version->setLink(
|
||||
1,
|
||||
std::make_shared<UrlClickHandler>(Core::App().changelogLink()));
|
||||
_version->setLink(
|
||||
2,
|
||||
std::make_shared<LambdaClickHandler>([=] {
|
||||
|
|
Loading…
Add table
Reference in a new issue