fix failing tests

Eric Holk created

Change summary

crates/workspace/src/workspace.rs | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

Detailed changes

crates/workspace/src/workspace.rs 🔗

@@ -1393,19 +1393,19 @@ impl Workspace {
                 }
             })
             .detach();
+        }
 
-            cx.observe_global_in::<SettingsStore>(window, |this, window, cx| {
-                if ProjectSettings::get_global(cx).session.trust_all_worktrees {
-                    if let Some(trusted_worktrees) = TrustedWorktrees::try_get_global(cx) {
-                        trusted_worktrees.update(cx, |trusted_worktrees, cx| {
-                            trusted_worktrees.auto_trust_all(cx);
-                        })
-                    }
+        cx.observe_global_in::<SettingsStore>(window, |this, window, cx| {
+            if ProjectSettings::get_global(cx).session.trust_all_worktrees {
+                if let Some(trusted_worktrees) = TrustedWorktrees::try_get_global(cx) {
+                    trusted_worktrees.update(cx, |trusted_worktrees, cx| {
+                        trusted_worktrees.auto_trust_all(cx);
+                    })
                 }
-                this.reposition_panels(window, cx);
-            })
-            .detach();
-        }
+            }
+            this.reposition_panels(window, cx);
+        })
+        .detach();
 
         cx.subscribe_in(&project, window, move |this, _, event, window, cx| {
             match event {