Skip to content

Commit

Permalink
fix unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
oleina committed Jun 20, 2024
1 parent e03ceae commit 12078d8
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 12078d8

Please sign in to comment.