diff options
| author | Horu <73709188+HigherOrderLogic@users.noreply.github.com> | 2025-08-17 16:28:24 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-17 09:28:24 +0300 |
| commit | 271534e115e5915231c99df287bbfe396185924d (patch) | |
| tree | 5642ba961a88d5f5d1f5afc0686d7b2f2476f28c /src/ui/config_error_notification.rs | |
| parent | af30cc8df68b29973c8b9eec290f9e6b93463929 (diff) | |
| download | niri-271534e115e5915231c99df287bbfe396185924d.tar.gz niri-271534e115e5915231c99df287bbfe396185924d.tar.bz2 niri-271534e115e5915231c99df287bbfe396185924d.zip | |
Add ConfigLoaded event to IPC, option to disable built-in notification (#1829)
* feat: config reload ipc event
* cleanups
* Rename and move the new config option
* rename to ConfigLoaded and emit at connection
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'src/ui/config_error_notification.rs')
| -rw-r--r-- | src/ui/config_error_notification.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/config_error_notification.rs b/src/ui/config_error_notification.rs index 4e976633..20667172 100644 --- a/src/ui/config_error_notification.rs +++ b/src/ui/config_error_notification.rs @@ -78,6 +78,11 @@ impl ConfigErrorNotification { } pub fn show(&mut self) { + let c = self.config.borrow(); + if c.config_notification.disable_failed { + return; + } + if self.created_path.is_some() { self.created_path = None; self.buffers.borrow_mut().clear(); |
