aboutsummaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/config_error_notification.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/config_error_notification.rs b/src/ui/config_error_notification.rs
index aa218c91..c4ca3b69 100644
--- a/src/ui/config_error_notification.rs
+++ b/src/ui/config_error_notification.rs
@@ -60,7 +60,8 @@ impl ConfigErrorNotification {
Animation::new(from, to, 0., c.animations.config_notification_open_close.0)
}
- pub fn show_created(&mut self, created_path: Option<PathBuf>) {
+ pub fn show_created(&mut self, created_path: PathBuf) {
+ let created_path = Some(created_path);
if self.created_path != created_path {
self.created_path = created_path;
self.buffers.borrow_mut().clear();