fix(wm): serde skip annotation for workspace_config

This commit is contained in:
alex-ds13
2025-01-28 17:20:04 +00:00
committed by LGUG2Z
parent b42fcbe509
commit c9e98c3cdb
2 changed files with 1 additions and 2 deletions

View File

@@ -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({

View File

@@ -92,6 +92,7 @@ pub struct Workspace {
window_container_behaviour_rules: Option<Vec<(usize, WindowContainerBehaviour)>>,
#[getset(get = "pub", get_mut = "pub", set = "pub")]
float_override: Option<bool>,
#[serde(skip)]
#[getset(get = "pub", set = "pub")]
workspace_config: Option<WorkspaceConfig>,
}