From 032589446a4bb0ae856cfa035feeb3113d50ca8f Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 13 Jun 2024 09:50:11 +0300 Subject: Fix cached data not updating on config change --- src/layout/workspace.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/layout/workspace.rs') diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index d3f583d2..cf0a83e9 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -457,8 +457,9 @@ impl Workspace { } pub fn update_config(&mut self, options: Rc) { - for column in &mut self.columns { + for (column, data) in zip(&mut self.columns, &mut self.data) { column.update_config(options.clone()); + data.update(column); } self.options = options; @@ -2741,8 +2742,9 @@ impl Column { update_sizes = true; } - for tile in &mut self.tiles { + for (tile, data) in zip(&mut self.tiles, &mut self.data) { tile.update_config(options.clone()); + data.update(tile); } self.options = options; -- cgit