mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-17 10:31:09 +02:00
fix(wm): apply ws cfgs only to declared ws indices
This commit ensures that when attempting to reload the static configuration file after the user has imperatively created new workspaces, the configuration reload logic will not attempt to load a workspace config for those imperatively created workspaces.
This commit is contained in:
@@ -1106,12 +1106,9 @@ impl StaticConfig {
|
|||||||
);
|
);
|
||||||
|
|
||||||
for (j, ws) in m.workspaces_mut().iter_mut().enumerate() {
|
for (j, ws) in m.workspaces_mut().iter_mut().enumerate() {
|
||||||
ws.load_static_config(
|
if let Some(workspace_config) = monitor.workspaces.get(j) {
|
||||||
monitor
|
ws.load_static_config(workspace_config)?;
|
||||||
.workspaces
|
}
|
||||||
.get(j)
|
|
||||||
.expect("no static workspace config"),
|
|
||||||
)?;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1169,12 +1166,9 @@ impl StaticConfig {
|
|||||||
);
|
);
|
||||||
|
|
||||||
for (j, ws) in m.workspaces_mut().iter_mut().enumerate() {
|
for (j, ws) in m.workspaces_mut().iter_mut().enumerate() {
|
||||||
ws.load_static_config(
|
if let Some(workspace_config) = monitor.workspaces.get(j) {
|
||||||
monitor
|
ws.load_static_config(workspace_config)?;
|
||||||
.workspaces
|
}
|
||||||
.get(j)
|
|
||||||
.expect("no static workspace config"),
|
|
||||||
)?;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user