Fix tests for TestPanel

This commit is contained in:
Conrad Irwin 2024-01-14 12:26:54 -07:00
parent 4d87a67af8
commit b34c78016f

View file

@ -743,8 +743,9 @@ pub mod test {
true 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; self.position = position;
cx.update_global::<SettingsStore, _>(|_, _| {});
} }
fn size(&self, _: &WindowContext) -> Pixels { fn size(&self, _: &WindowContext) -> Pixels {