Commit 15a6b5e
authored
Handle the case where there is no resume time. (#23885)
# Objective
- Fix the case where the UpdateMode::reactive is set to Duration::MAX.
## Solution
- When `StartCause::WaitCancelled::requested_resume` is `None`, always
report this case as not having elapsed the wait time.
## Testing
- Ran the desktop_request_redraw with
`UpdateMode::reactive(Duration::MAX)` and now it updates only when a
redraw happens or a window even happens!1 parent ec2b9db commit 15a6b5e
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
168 | 167 | | |
169 | 168 | | |
170 | | - | |
171 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
0 commit comments