2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add rpl interface to RadiobuttonGroup.

This commit is contained in:
John Preston
2024-02-23 13:29:17 +04:00
parent e05eb63476
commit f85c3c88f7
22 changed files with 50 additions and 46 deletions

View File

@@ -607,7 +607,7 @@ void ChooseMediaDeviceBox(
button->finishAnimating();
button->clicks(
) | rpl::filter([=] {
return (group->value() == index);
return (group->current() == index);
}) | rpl::start_with_next([=] {
choose(id);
}, button->lifetime());