mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +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("Telegram Desktop"),
|
||||||
qsl("https://desktop.telegram.org")));
|
qsl("https://desktop.telegram.org")));
|
||||||
_telegram->setLinksTrusted();
|
_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->setMarkedText(
|
||||||
_version->setLink(1, std::make_shared<UrlClickHandler>(Core::App().changelogLink()));
|
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(
|
_version->setLink(
|
||||||
2,
|
2,
|
||||||
std::make_shared<LambdaClickHandler>([=] {
|
std::make_shared<LambdaClickHandler>([=] {
|
||||||
|
|
Loading…
Add table
Reference in a new issue