diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-02 13:10:45 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-02 13:10:45 +0300 |
| commit | 4b7c16b04a7c80f5f9b6fcbc4a1d8c9448dffbdb (patch) | |
| tree | c19a52b12720a83a6a06501d5295e35da43065be /src/ui | |
| parent | aafd5ab70ff7031e8fa448d13a217ab66b6a4483 (diff) | |
| download | niri-4b7c16b04a7c80f5f9b6fcbc4a1d8c9448dffbdb.tar.gz niri-4b7c16b04a7c80f5f9b6fcbc4a1d8c9448dffbdb.tar.bz2 niri-4b7c16b04a7c80f5f9b6fcbc4a1d8c9448dffbdb.zip | |
Read config from /etc/niri/config.kdl too
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/config_error_notification.rs | 3 |
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(); |
