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>
This commit is contained in:
Horu
2025-08-17 16:28:24 +10:00
committed by GitHub
parent af30cc8df6
commit 271534e115
9 changed files with 107 additions and 5 deletions
+11
View File
@@ -60,6 +60,8 @@ pub struct Config {
#[knuffel(child, default)]
pub hotkey_overlay: HotkeyOverlay,
#[knuffel(child, default)]
pub config_notification: ConfigNotification,
#[knuffel(child, default)]
pub animations: Animations,
#[knuffel(child, default)]
pub gestures: Gestures,
@@ -1047,6 +1049,12 @@ pub struct HotkeyOverlay {
pub hide_not_bound: bool,
}
#[derive(knuffel::Decode, Debug, Default, Clone, Copy, PartialEq, Eq)]
pub struct ConfigNotification {
#[knuffel(child)]
pub disable_failed: bool,
}
#[derive(knuffel::Decode, Debug, Default, Clone, Copy, PartialEq, Eq)]
pub struct Clipboard {
#[knuffel(child)]
@@ -4769,6 +4777,9 @@ mod tests {
skip_at_startup: true,
hide_not_bound: false,
},
config_notification: ConfigNotification {
disable_failed: false,
},
animations: Animations {
off: false,
slowdown: FloatOrInt(