Skip to content

Commit 9a86e9e

Browse files
committed
Put back window observer
1 parent f89f797 commit 9a86e9e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

CodeEdit/Features/Documents/Controllers/CodeEditSplitViewController.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ final class CodeEditSplitViewController: NSSplitViewController {
6969
addSplitViewItem(navigator)
7070

7171
let workspaceView = SettingsInjector {
72-
WorkspaceView()
73-
.environmentObject(workspace)
74-
.environmentObject(editorManager)
75-
.environmentObject(statusBarViewModel)
76-
.environmentObject(utilityAreaModel)
77-
.environmentObject(taskManager)
78-
.environmentObject(workspace.activityManager)
72+
WindowObserver(window: WindowBox(value: windowRef)) {
73+
WorkspaceView()
74+
.environmentObject(workspace)
75+
.environmentObject(editorManager)
76+
.environmentObject(statusBarViewModel)
77+
.environmentObject(utilityAreaModel)
78+
.environmentObject(taskManager)
79+
.environmentObject(workspace.activityManager)
80+
}
7981
}
8082

8183
let mainContent = NSSplitViewItem(viewController: NSHostingController(rootView: workspaceView))

0 commit comments

Comments
 (0)