diff options
author | 2024-06-04 23:20:33 +0200 | |
---|---|---|
committer | 2024-06-10 22:03:46 +0200 | |
commit | e400f972c1fe6fa4f70f8cfe559ded680e6cf740 (patch) | |
tree | 3f026bfdf489c367ff007b6513752c8060014a4d /examples/loading_spinners/src/linear.rs | |
parent | 49affc44ff57ad879a73d9b4d329863d6f4b1d2c (diff) | |
download | iced-e400f972c1fe6fa4f70f8cfe559ded680e6cf740.tar.gz iced-e400f972c1fe6fa4f70f8cfe559ded680e6cf740.tar.bz2 iced-e400f972c1fe6fa4f70f8cfe559ded680e6cf740.zip |
Introduce `window::Id` to `Event` subscriptions
And remove `window::Id` from `Event` altogether.
Diffstat (limited to 'examples/loading_spinners/src/linear.rs')
-rw-r--r-- | examples/loading_spinners/src/linear.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/loading_spinners/src/linear.rs b/examples/loading_spinners/src/linear.rs index ce375621..164993c6 100644 --- a/examples/loading_spinners/src/linear.rs +++ b/examples/loading_spinners/src/linear.rs @@ -189,7 +189,7 @@ where ) -> event::Status { let state = tree.state.downcast_mut::<State>(); - if let Event::Window(_, window::Event::RedrawRequested(now)) = event { + if let Event::Window(window::Event::RedrawRequested(now)) = event { *state = state.timed_transition(self.cycle_duration, now); shell.request_redraw(RedrawRequest::NextFrame); |