From 73e9ef5fe20825ed12f1bb05ba10e7eb69bc7662 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 17 Apr 2024 14:06:32 +0400 Subject: Resolve animation defaults during parsing --- src/ui/config_error_notification.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/ui') diff --git a/src/ui/config_error_notification.rs b/src/ui/config_error_notification.rs index d49ab4f0..1331b912 100644 --- a/src/ui/config_error_notification.rs +++ b/src/ui/config_error_notification.rs @@ -59,13 +59,7 @@ impl ConfigErrorNotification { fn animation(&self, from: f64, to: f64) -> Animation { let c = self.config.borrow(); - Animation::new( - from, - to, - 0., - c.animations.config_notification_open_close, - niri_config::Animation::default_config_notification_open_close(), - ) + Animation::new(from, to, 0., c.animations.config_notification_open_close.0) } pub fn show_created(&mut self, created_path: Option) { -- cgit