From 12078d8180429dba9dd9a6239467e791c1249b32 Mon Sep 17 00:00:00 2001 From: oleina Date: Thu, 20 Jun 2024 11:04:34 -0700 Subject: [PATCH] fix unwrap --- daemon/src/surface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/surface.rs b/daemon/src/surface.rs index c26a584..2495dd5 100644 --- a/daemon/src/surface.rs +++ b/daemon/src/surface.rs @@ -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);