Renamed rpl::start_with_ with rpl::on_.

This commit is contained in:
23rd
2025-12-10 20:51:57 +03:00
parent 29b714dd5f
commit eca8dfb0ec
623 changed files with 4524 additions and 4524 deletions

View File

@@ -298,7 +298,7 @@ void Tray::createIcon() {
base::qt_signal_producer(
_icon.get(),
&QSystemTrayIcon::activated
) | rpl::start_with_next([=](Reason reason) {
) | rpl::on_next([=](Reason reason) {
if (reason == QSystemTrayIcon::Context) {
showCustom();
} else {
@@ -312,7 +312,7 @@ void Tray::createIcon() {
_eventFilter = base::make_unique_q<TrayEventFilter>(
QCoreApplication::instance());
_eventFilter->contextMenuFilters(
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
showCustom();
}, _lifetime);
}
@@ -360,7 +360,7 @@ void Tray::addAction(rpl::producer<QString> text, Fn<void()> &&callback) {
const auto action = _menuCustom->addAction(QString(), callback);
rpl::duplicate(
text
) | rpl::start_with_next([=](const QString &text) {
) | rpl::on_next([=](const QString &text) {
action->setText(text);
}, _actionsLifetime);
}
@@ -369,7 +369,7 @@ void Tray::addAction(rpl::producer<QString> text, Fn<void()> &&callback) {
const auto action = _menu->addAction(QString(), std::move(callback));
std::move(
text
) | rpl::start_with_next([=](const QString &text) {
) | rpl::on_next([=](const QString &text) {
action->setText(text);
}, _actionsLifetime);
}