From 4b7c16b04a7c80f5f9b6fcbc4a1d8c9448dffbdb Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 2 Sep 2024 13:10:45 +0300 Subject: Read config from /etc/niri/config.kdl too --- src/ui/config_error_notification.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui') 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) { + 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(); -- cgit