Skip to content

Commit

Permalink
Merge pull request #73 from antholeole/main
Browse files Browse the repository at this point in the history
fix an unsafe unwrap in animation transition
  • Loading branch information
danyspin97 authored Jun 20, 2024
2 parents e03ceae + 12078d8 commit 64a8d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/src/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl Surface {

if self.renderer.transition_running() {
// Recalculate the current progress, the transition might end now
let transition_running = self.renderer.update_transition_status(time.unwrap());
let transition_running = self.renderer.update_transition_status(time.unwrap_or(0));
// If we don't have any time passed, just consider the transition to be ended
if transition_running {
self.queue_draw(qh);
Expand Down

0 comments on commit 64a8d37

Please sign in to comment.