Skip to content

Commit 5e86b93

Browse files
committed
Move the state retrieval to after the debouncing
1 parent f9c30c6 commit 5e86b93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Core/Sources/SuggestionWidget/WidgetWindowsController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ actor WidgetWindowsController: NSObject {
9393
let xcodeInspector = self.xcodeInspector
9494
let activeApp = xcodeInspector.activeApplication
9595
await MainActor.run {
96+
let state = store.withState { $0 }
97+
let isChatPanelDetached = state.chatPanelState.chatPanelInASeparateWindow
98+
let hasChat = !state.chatPanelState.chatTabGroup.tabInfo.isEmpty
99+
96100
if let activeApp, activeApp.isXcode {
97101
let application = activeApp.appElement
98102
/// We need this to hide the windows when Xcode is minimized.

0 commit comments

Comments
 (0)