mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Renamed rpl::start_with_ with rpl::on_.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user