Fix tests for TestPanel

Conrad Irwin created

Change summary

crates/workspace/src/dock.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

crates/workspace/src/dock.rs 🔗

@@ -743,8 +743,9 @@ pub mod test {
             true
         }
 
-        fn set_position(&mut self, position: DockPosition, _: &mut ViewContext<Self>) {
+        fn set_position(&mut self, position: DockPosition, cx: &mut ViewContext<Self>) {
             self.position = position;
+            cx.update_global::<SettingsStore, _>(|_, _| {});
         }
 
         fn size(&self, _: &WindowContext) -> Pixels {