2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-09 19:15:17 +00:00

Remove pseudo-HTML from langpacks and Ui::Text::String.

This commit is contained in:
John Preston
2019-06-12 22:11:41 +02:00
parent 9066acd2dd
commit ca7c50fbcd
53 changed files with 253 additions and 314 deletions

View File

@@ -13,6 +13,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/update_checker.h"
#include "ui/widgets/buttons.h"
#include "ui/widgets/labels.h"
#include "ui/text/text_utilities.h"
#include "boxes/confirm_box.h"
#include "styles/style_intro.h"
@@ -101,7 +102,11 @@ void CodeWidget::refreshLang() {
}
void CodeWidget::updateDescText() {
setDescriptionText(langFactory(getData()->codeByTelegram ? lng_code_telegram : lng_code_desc));
const auto byTelegram = getData()->codeByTelegram;
setDescriptionText([=] {
return Ui::Text::RichLangValue(
lang(byTelegram ? lng_code_from_telegram : lng_code_desc));
});
if (getData()->codeByTelegram) {
_noTelegramCode->show();
_callTimer->stop();