diff options
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/config_error_notification.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ui/config_error_notification.rs b/src/ui/config_error_notification.rs index 9b414f00..4e976633 100644 --- a/src/ui/config_error_notification.rs +++ b/src/ui/config_error_notification.rs @@ -68,10 +68,9 @@ impl ConfigErrorNotification { ) } - 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; + pub fn show_created(&mut self, created_path: &Path) { + if self.created_path.as_deref() != Some(created_path) { + self.created_path = Some(created_path.to_owned()); self.buffers.borrow_mut().clear(); } |
