aboutsummaryrefslogtreecommitdiff
path: root/src/config_error_notification.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config_error_notification.rs')
-rw-r--r--src/config_error_notification.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config_error_notification.rs b/src/config_error_notification.rs
index 73ae3d9b..b80e8d27 100644
--- a/src/config_error_notification.rs
+++ b/src/config_error_notification.rs
@@ -58,7 +58,7 @@ impl ConfigErrorNotification {
self.buffers.borrow_mut().clear();
}
- self.state = State::Showing(Animation::new(0., 1., Duration::from_millis(250)));
+ self.state = State::Showing(Animation::new(0., 1., 250));
}
pub fn show(&mut self) {
@@ -68,7 +68,7 @@ impl ConfigErrorNotification {
}
// Show from scratch even if already showing to bring attention.
- self.state = State::Showing(Animation::new(0., 1., Duration::from_millis(250)));
+ self.state = State::Showing(Animation::new(0., 1., 250));
}
pub fn hide(&mut self) {
@@ -76,7 +76,7 @@ impl ConfigErrorNotification {
return;
}
- self.state = State::Hiding(Animation::new(1., 0., Duration::from_millis(250)));
+ self.state = State::Hiding(Animation::new(1., 0., 250));
}
pub fn advance_animations(&mut self, target_presentation_time: Duration) {