diff --git a/Telegram/SourceFiles/boxes/about_box.cpp b/Telegram/SourceFiles/boxes/about_box.cpp index 4fe3652000..06ff4addaf 100644 --- a/Telegram/SourceFiles/boxes/about_box.cpp +++ b/Telegram/SourceFiles/boxes/about_box.cpp @@ -63,7 +63,7 @@ rpl::producer Text3() { } // namespace void AboutBox(not_null box) { - box->setTitle(rpl::single(u"Telegram Desktop"_q)); + box->setTitle(u"Telegram Desktop"_q); auto layout = box->verticalLayout(); diff --git a/Telegram/SourceFiles/boxes/report_messages_box.cpp b/Telegram/SourceFiles/boxes/report_messages_box.cpp index c66609f07c..08ac9e4f2f 100644 --- a/Telegram/SourceFiles/boxes/report_messages_box.cpp +++ b/Telegram/SourceFiles/boxes/report_messages_box.cpp @@ -105,11 +105,9 @@ void ShowReportMessageBox( } if (!result.options.empty() || result.commentOption) { show->show(Box([=](not_null box) { - box->setTitle( - rpl::single( - result.title.isEmpty() - ? reportInput.optionText - : result.title)); + box->setTitle(result.title.isEmpty() + ? reportInput.optionText + : result.title); for (const auto &option : result.options) { const auto button = Ui::AddReportOptionButton( diff --git a/Telegram/SourceFiles/calls/calls_top_bar.cpp b/Telegram/SourceFiles/calls/calls_top_bar.cpp index 3e3252fa9a..5cc36461ad 100644 --- a/Telegram/SourceFiles/calls/calls_top_bar.cpp +++ b/Telegram/SourceFiles/calls/calls_top_bar.cpp @@ -149,7 +149,7 @@ DebugInfoBox::DebugInfoBox(QWidget*, base::weak_ptr call) } void DebugInfoBox::prepare() { - setTitle(rpl::single(u"Call Debug"_q)); + setTitle(u"Call Debug"_q); addButton(tr::lng_close(), [this] { closeBox(); }); _text = setInnerWidget( diff --git a/Telegram/SourceFiles/history/view/controls/history_view_forward_panel.cpp b/Telegram/SourceFiles/history/view/controls/history_view_forward_panel.cpp index 063c39a38b..d17cb3e5a3 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_forward_panel.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_forward_panel.cpp @@ -372,7 +372,7 @@ void EditWebPageOptions( Data::WebPageDraft draft, Fn done) { show->show(Box([=](not_null box) { - box->setTitle(rpl::single(u"Link Preview"_q)); + box->setTitle(u"Link Preview"_q); struct State { rpl::variable result; diff --git a/Telegram/SourceFiles/menu/menu_sponsored.cpp b/Telegram/SourceFiles/menu/menu_sponsored.cpp index b6278272bc..83340bcb03 100644 --- a/Telegram/SourceFiles/menu/menu_sponsored.cpp +++ b/Telegram/SourceFiles/menu/menu_sponsored.cpp @@ -318,7 +318,7 @@ void ShowReportSponsoredBox( } if (!result.options.empty()) { show->show(Box([=](not_null box) { - box->setTitle(rpl::single(result.title)); + box->setTitle(result.title); for (const auto &option : result.options) { const auto button = Ui::AddReportOptionButton( diff --git a/Telegram/SourceFiles/support/support_autocomplete.cpp b/Telegram/SourceFiles/support/support_autocomplete.cpp index 6573ca2822..615e73c41e 100644 --- a/Telegram/SourceFiles/support/support_autocomplete.cpp +++ b/Telegram/SourceFiles/support/support_autocomplete.cpp @@ -495,7 +495,7 @@ ConfirmContactBox::ConfirmContactBox( } void ConfirmContactBox::prepare() { - setTitle(rpl::single(u"Confirmation"_q)); // #TODO hard_lang + setTitle(u"Confirmation"_q); // #TODO hard_lang auto maxWidth = 0; if (_comment) { diff --git a/Telegram/SourceFiles/support/support_helper.cpp b/Telegram/SourceFiles/support/support_helper.cpp index 7fa1202a40..0b6c5531bf 100644 --- a/Telegram/SourceFiles/support/support_helper.cpp +++ b/Telegram/SourceFiles/support/support_helper.cpp @@ -102,7 +102,7 @@ EditInfoBox::EditInfoBox( } void EditInfoBox::prepare() { - setTitle(rpl::single(u"Edit support information"_q)); // #TODO hard_lang + setTitle(u"Edit support information"_q); // #TODO hard_lang const auto save = [=] { const auto done = crl::guard(this, [=](bool success) { diff --git a/Telegram/SourceFiles/ui/boxes/boost_box.cpp b/Telegram/SourceFiles/ui/boxes/boost_box.cpp index 243cfaf4d7..108c69b9c1 100644 --- a/Telegram/SourceFiles/ui/boxes/boost_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/boost_box.cpp @@ -485,7 +485,7 @@ void BoostBox( + QMargins(0, st::boostTextSkip, 0, st::boostBottomSkip))); const auto current = state->data.current(); - box->setTitle(rpl::single(QString())); + box->setTitle(QString()); AddFeaturesList( box->verticalLayout(), data.features, diff --git a/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp b/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp index 97642ca3fb..9312c90bae 100644 --- a/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp @@ -346,7 +346,7 @@ void EditorBlock::activateRow(const Row &row) { }); box->addButton(tr::lng_settings_save(), save); box->addButton(tr::lng_cancel(), [=] { box->closeBox(); }); - box->setTitle(rpl::single(name)); + box->setTitle(name); box->setWidth(editor->width()); _context->colorEditor.box = box; diff --git a/Telegram/lib_ui b/Telegram/lib_ui index b308637783..5977759c8a 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit b308637783045577d11b4b2c071ddb8e9be29fb2 +Subproject commit 5977759c8a00c8e69170e27929c71daa761950fc