diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-15 01:37:57 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-15 01:37:57 +0300 |
| commit | bfe2f84f4fc8f37517eaadfa3274eb0ff79b47ab (patch) | |
| tree | b97f7700b5e13627d273a83e41eb7f3366b65039 /src/config | |
| parent | 80d70642b7a86d1d9473ed55586412e0345d015e (diff) | |
feat: add system toast delivery
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/model.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/config/model.rs b/src/config/model.rs index a576418b..a8485fb0 100644 --- a/src/config/model.rs +++ b/src/config/model.rs @@ -9,6 +9,7 @@ pub enum ToastDelivery { Off, Herdr, Terminal, + System, } #[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize, Serialize, Default)] @@ -299,6 +300,16 @@ delivery = "terminal" } #[test] + fn toast_config_parses_system_delivery() { + let toml = r#" +[ui.toast] +delivery = "system" +"#; + let config: Config = toml::from_str(toml).unwrap(); + assert_eq!(config.ui.toast.delivery, ToastDelivery::System); + } + + #[test] fn toast_config_legacy_enabled_true_maps_to_herdr() { let toml = r#" [ui.toast] |
