mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Replaced mapping to rpl::empty_value with rpl::to_empty.
This commit is contained in:
@@ -246,15 +246,15 @@ void FilterRowButton::updateButtonsVisibility() {
|
||||
}
|
||||
|
||||
rpl::producer<> FilterRowButton::removeRequests() const {
|
||||
return _remove.clicks() | rpl::map([] { return rpl::empty_value(); });
|
||||
return _remove.clicks() | rpl::to_empty;
|
||||
}
|
||||
|
||||
rpl::producer<> FilterRowButton::restoreRequests() const {
|
||||
return _restore.clicks() | rpl::map([] { return rpl::empty_value(); });
|
||||
return _restore.clicks() | rpl::to_empty;
|
||||
}
|
||||
|
||||
rpl::producer<> FilterRowButton::addRequests() const {
|
||||
return _add.clicks() | rpl::map([] { return rpl::empty_value(); });
|
||||
return _add.clicks() | rpl::to_empty;
|
||||
}
|
||||
|
||||
void FilterRowButton::paintEvent(QPaintEvent *e) {
|
||||
|
Reference in New Issue
Block a user