mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-09 06:25:23 +02:00
fix(wm): serde skip annotation for workspace_config
This commit is contained in:
@@ -1253,7 +1253,6 @@ impl StaticConfig {
|
|||||||
let c_idx = display_index_preferences
|
let c_idx = display_index_preferences
|
||||||
.iter()
|
.iter()
|
||||||
.find_map(|(c_idx, m_id)| (monitor.device_id() == m_id).then_some(*c_idx));
|
.find_map(|(c_idx, m_id)| (monitor.device_id() == m_id).then_some(*c_idx));
|
||||||
drop(display_index_preferences);
|
|
||||||
c_idx
|
c_idx
|
||||||
};
|
};
|
||||||
let idx = preferred_config_idx.or({
|
let idx = preferred_config_idx.or({
|
||||||
@@ -1382,7 +1381,6 @@ impl StaticConfig {
|
|||||||
let c_idx = display_index_preferences
|
let c_idx = display_index_preferences
|
||||||
.iter()
|
.iter()
|
||||||
.find_map(|(c_idx, m_id)| (monitor.device_id() == m_id).then_some(*c_idx));
|
.find_map(|(c_idx, m_id)| (monitor.device_id() == m_id).then_some(*c_idx));
|
||||||
drop(display_index_preferences);
|
|
||||||
c_idx
|
c_idx
|
||||||
};
|
};
|
||||||
let idx = preferred_config_idx.or({
|
let idx = preferred_config_idx.or({
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ pub struct Workspace {
|
|||||||
window_container_behaviour_rules: Option<Vec<(usize, WindowContainerBehaviour)>>,
|
window_container_behaviour_rules: Option<Vec<(usize, WindowContainerBehaviour)>>,
|
||||||
#[getset(get = "pub", get_mut = "pub", set = "pub")]
|
#[getset(get = "pub", get_mut = "pub", set = "pub")]
|
||||||
float_override: Option<bool>,
|
float_override: Option<bool>,
|
||||||
|
#[serde(skip)]
|
||||||
#[getset(get = "pub", set = "pub")]
|
#[getset(get = "pub", set = "pub")]
|
||||||
workspace_config: Option<WorkspaceConfig>,
|
workspace_config: Option<WorkspaceConfig>,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user