mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-25 01:58:51 +02:00
fix(config): ensure tiling with layout rules
This commit ensures that tiling on a workspace will be enabled if a user specifies layout rules or custom layout rules without providing an option to the "layout" key.
This commit is contained in:
@@ -131,6 +131,8 @@ impl Workspace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.set_layout_rules(all_rules);
|
self.set_layout_rules(all_rules);
|
||||||
|
|
||||||
|
self.tile = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(layout_rules) = &config.custom_layout_rules {
|
if let Some(layout_rules) = &config.custom_layout_rules {
|
||||||
@@ -139,6 +141,8 @@ impl Workspace {
|
|||||||
let rule = CustomLayout::from_path(pathbuf)?;
|
let rule = CustomLayout::from_path(pathbuf)?;
|
||||||
rules.push((*count, Layout::Custom(rule)));
|
rules.push((*count, Layout::Custom(rule)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.tile = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user