Removed text commands from Export::View::TopBar.

This commit is contained in:
23rd 2021-12-25 20:00:41 +03:00 committed by John Preston
parent 10df3dce7c
commit 97dde7eb56

View file

@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "export/view/export_view_top_bar.h" #include "export/view/export_view_top_bar.h"
#include "export/view/export_view_content.h" #include "export/view/export_view_content.h"
#include "ui/text/text_utilities.h"
#include "ui/widgets/continuous_sliders.h" #include "ui/widgets/continuous_sliders.h"
#include "ui/widgets/labels.h" #include "ui/widgets/labels.h"
#include "ui/widgets/buttons.h" #include "ui/widgets/buttons.h"
@ -39,13 +40,12 @@ void TopBar::updateData(Content &&content) {
return; return;
} }
const auto &row = content.rows[0]; const auto &row = content.rows[0];
_info->setRichText(textcmdStartSemibold() _info->setMarkedText(
+ TextUtilities::Clean(tr::lng_export_progress_title(tr::now)) Ui::Text::Bold(tr::lng_export_progress_title(tr::now))
+ textcmdStopSemibold() .append(" \xe2\x80\x93 ")
+ QString::fromUtf8(" \xe2\x80\x93 ") .append(row.label)
+ TextUtilities::Clean(row.label) .append(' ')
+ ' ' .append(Ui::Text::PlainLink(row.info)));
+ textcmdLink(1, TextUtilities::Clean(row.info)));
_progress->setValue(row.progress); _progress->setValue(row.progress);
} }