aboutsummaryrefslogtreecommitdiff
path: root/src/ui/config_error_notification.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-04-17 14:06:32 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-04-17 14:06:32 +0400
commit73e9ef5fe20825ed12f1bb05ba10e7eb69bc7662 (patch)
treecdb4d408a50494fd86695ce0807602869c047f93 /src/ui/config_error_notification.rs
parentc40d4f3268318ac295f21bfce38b9809c5e48f0d (diff)
downloadniri-73e9ef5fe20825ed12f1bb05ba10e7eb69bc7662.tar.gz
niri-73e9ef5fe20825ed12f1bb05ba10e7eb69bc7662.tar.bz2
niri-73e9ef5fe20825ed12f1bb05ba10e7eb69bc7662.zip
Resolve animation defaults during parsing
Diffstat (limited to 'src/ui/config_error_notification.rs')
-rw-r--r--src/ui/config_error_notification.rs8
1 files changed, 1 insertions, 7 deletions
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<PathBuf>) {