diff options
Diffstat (limited to 'src/ui/screenshot_ui.rs')
| -rw-r--r-- | src/ui/screenshot_ui.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ui/screenshot_ui.rs b/src/ui/screenshot_ui.rs index cde9bdac..f7d1bd1a 100644 --- a/src/ui/screenshot_ui.rs +++ b/src/ui/screenshot_ui.rs @@ -3,7 +3,6 @@ use std::cmp::{max, min}; use std::collections::HashMap; use std::iter::zip; use std::rc::Rc; -use std::time::Duration; use anyhow::Context; use arrayvec::ArrayVec; @@ -185,7 +184,7 @@ impl ScreenshotUi { let open_anim = { let c = config.borrow(); - Animation::new(clock.now(), 0., 1., 0., c.animations.screenshot_ui_open.0) + Animation::new(clock.clone(), 0., 1., 0., c.animations.screenshot_ui_open.0) }; *self = Self::Open { @@ -238,13 +237,7 @@ impl ScreenshotUi { matches!(self, ScreenshotUi::Open { .. }) } - pub fn advance_animations(&mut self, current_time: Duration) { - let Self::Open { open_anim, .. } = self else { - return; - }; - - open_anim.set_current_time(current_time); - } + pub fn advance_animations(&mut self) {} pub fn are_animations_ongoing(&self) -> bool { let Self::Open { open_anim, .. } = self else { |
