mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-24 01:28:39 +02:00
fix(wm): don't store empty layout_rules on monitor cache
This commit is contained in:
@@ -176,6 +176,7 @@ impl From<&Workspace> for WorkspaceConfig {
|
|||||||
Layout::Custom(_) => {}
|
Layout::Custom(_) => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let layout_rules = (!layout_rules.is_empty()).then_some(layout_rules);
|
||||||
|
|
||||||
let mut window_container_behaviour_rules = HashMap::new();
|
let mut window_container_behaviour_rules = HashMap::new();
|
||||||
for (threshold, behaviour) in value.window_container_behaviour_rules().iter().flatten() {
|
for (threshold, behaviour) in value.window_container_behaviour_rules().iter().flatten() {
|
||||||
@@ -217,7 +218,7 @@ impl From<&Workspace> for WorkspaceConfig {
|
|||||||
.workspace_config()
|
.workspace_config()
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|c| c.custom_layout.clone()),
|
.and_then(|c| c.custom_layout.clone()),
|
||||||
layout_rules: Option::from(layout_rules),
|
layout_rules,
|
||||||
custom_layout_rules: value
|
custom_layout_rules: value
|
||||||
.workspace_config()
|
.workspace_config()
|
||||||
.as_ref()
|
.as_ref()
|
||||||
|
|||||||
Reference in New Issue
Block a user