From c9e98c3cdb00812b6c9986a152756be6b0f2efcc Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Tue, 28 Jan 2025 17:20:04 +0000 Subject: [PATCH] fix(wm): serde skip annotation for workspace_config --- komorebi/src/static_config.rs | 2 -- komorebi/src/workspace.rs | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/komorebi/src/static_config.rs b/komorebi/src/static_config.rs index 9435bbad..75c46bb8 100644 --- a/komorebi/src/static_config.rs +++ b/komorebi/src/static_config.rs @@ -1253,7 +1253,6 @@ impl StaticConfig { let c_idx = display_index_preferences .iter() .find_map(|(c_idx, m_id)| (monitor.device_id() == m_id).then_some(*c_idx)); - drop(display_index_preferences); c_idx }; let idx = preferred_config_idx.or({ @@ -1382,7 +1381,6 @@ impl StaticConfig { let c_idx = display_index_preferences .iter() .find_map(|(c_idx, m_id)| (monitor.device_id() == m_id).then_some(*c_idx)); - drop(display_index_preferences); c_idx }; let idx = preferred_config_idx.or({ diff --git a/komorebi/src/workspace.rs b/komorebi/src/workspace.rs index 13cbb817..b8ae9b2c 100644 --- a/komorebi/src/workspace.rs +++ b/komorebi/src/workspace.rs @@ -92,6 +92,7 @@ pub struct Workspace { window_container_behaviour_rules: Option>, #[getset(get = "pub", get_mut = "pub", set = "pub")] float_override: Option, + #[serde(skip)] #[getset(get = "pub", set = "pub")] workspace_config: Option, }