aboutsummaryrefslogtreecommitdiff
path: root/src/ui/config_error_notification.rs
diff options
context:
space:
mode:
authorHoru <73709188+HigherOrderLogic@users.noreply.github.com>2025-08-17 16:28:24 +1000
committerGitHub <noreply@github.com>2025-08-17 09:28:24 +0300
commit271534e115e5915231c99df287bbfe396185924d (patch)
tree5642ba961a88d5f5d1f5afc0686d7b2f2476f28c /src/ui/config_error_notification.rs
parentaf30cc8df68b29973c8b9eec290f9e6b93463929 (diff)
downloadniri-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.rs5
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();