@@ -96,7 +96,7 @@ actor WidgetWindowsController: NSObject {
9696 let previousActiveApplication = xcodeInspector. previousActiveApplication
9797 await MainActor . run {
9898 let state = store. withState { $0 }
99- let isChatPanelDetached = state. chatPanelState. chatPanelInASeparateWindow
99+ let isChatPanelDetached = state. chatPanelState. isDetached
100100 let hasChat = !state. chatPanelState. chatTabGroup. tabInfo. isEmpty
101101
102102 if let activeApp, activeApp. isXcode {
@@ -166,7 +166,7 @@ actor WidgetWindowsController: NSObject {
166166 @Sendable @MainActor
167167 func update( ) async {
168168 let state = store. withState { $0 }
169- let isChatPanelDetached = state. chatPanelState. chatPanelInASeparateWindow
169+ let isChatPanelDetached = state. chatPanelState. isDetached
170170 guard let widgetLocation = await generateWidgetLocation ( ) else { return }
171171 await updatePanelState ( widgetLocation)
172172
@@ -295,14 +295,15 @@ private extension WidgetWindowsController {
295295 /// so the transition looks better.
296296 func hideWidgetForTransitions( ) async {
297297 let newDocumentURL = await xcodeInspector. safe. realtimeActiveDocumentURL
298- let documentURL = await MainActor . run { store. withState { $0. focusingDocumentURL } }
298+ let documentURL = await MainActor
299+ . run { store. withState { $0. focusingDocumentURL } }
299300 if documentURL != newDocumentURL {
300301 await send ( . panel( . removeDisplayedContent) )
301302 await hidePanelWindows ( )
302303 }
303304 await send ( . updateFocusingDocumentURL)
304305 }
305-
306+
306307 func removeContent( ) async {
307308 await send ( . panel( . removeDisplayedContent) )
308309 }
0 commit comments