summaryrefslogtreecommitdiffstats
path: root/widget/src/radio.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--widget/src/radio.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/widget/src/radio.rs b/widget/src/radio.rs
index 714d4fb5..ed821532 100644
--- a/widget/src/radio.rs
+++ b/widget/src/radio.rs
@@ -360,13 +360,11 @@ where
if let Event::Window(window::Event::RedrawRequested(_now)) = event {
self.last_status = Some(current_status);
- } else {
- match self.last_status {
- Some(status) if status != current_status => {
- shell.request_redraw(window::RedrawRequest::NextFrame);
- }
- _ => {}
- }
+ } else if self
+ .last_status
+ .is_some_and(|last_status| last_status != current_status)
+ {
+ shell.request_redraw();
}
event::Status::Ignored