mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-10 07:02:44 +02:00
fix(config): disable tiling for ws without layouts
This commit ensures that when a layout or a custom layout is not defined for a workspace in the static configuration file, Workspace.tile will be set to false. Thanks to M. Kichel on Discord for pointing out the need for this!
This commit is contained in:
@@ -104,11 +104,17 @@ impl Workspace {
|
|||||||
|
|
||||||
if let Some(layout) = &config.layout {
|
if let Some(layout) = &config.layout {
|
||||||
self.layout = Layout::Default(*layout);
|
self.layout = Layout::Default(*layout);
|
||||||
|
self.tile = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(pathbuf) = &config.custom_layout {
|
if let Some(pathbuf) = &config.custom_layout {
|
||||||
let layout = CustomLayout::from_path_buf(pathbuf.clone())?;
|
let layout = CustomLayout::from_path_buf(pathbuf.clone())?;
|
||||||
self.layout = Layout::Custom(layout);
|
self.layout = Layout::Custom(layout);
|
||||||
|
self.tile = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if config.custom_layout.is_none() && config.layout.is_none() {
|
||||||
|
self.tile = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(layout_rules) = &config.layout_rules {
|
if let Some(layout_rules) = &config.layout_rules {
|
||||||
|
|||||||
Reference in New Issue
Block a user