Skip to content

Commit f4403de

Browse files
committed
Remove warnings
1 parent 04c805a commit f4403de

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

Core/Sources/SuggestionWidget/WidgetWindowsController.swift

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ actor WidgetWindowsController: NSObject {
1818
var xcodeInspector: XcodeInspector { .shared }
1919
2020
nonisolated let windows: WidgetWindows
21-
let store: StoreOf<Widget>
22-
let chatTabPool: ChatTabPool
21+
nonisolated let store: StoreOf<Widget>
22+
nonisolated let chatTabPool: ChatTabPool
2323
2424
var currentApplicationProcessIdentifier: pid_t?
2525
@@ -390,7 +390,6 @@ extension WidgetWindowsController {
390390
await MainActor.run {
391391
let state = store.withState { $0 }
392392
let isChatPanelDetached = state.chatPanelState.isDetached
393-
let hasChat = !state.chatPanelState.chatTabGroup.tabInfo.isEmpty
394393

395394
if let activeApp, activeApp.isXcode {
396395
let application = activeApp.appElement
@@ -588,15 +587,10 @@ extension WidgetWindowsController {
588587
let activeXcode = await XcodeInspector.shared.safe.activeXcode
589588

590589
let xcode = activeXcode?.appElement
591-
let isFullscreen = if let xcode, let xcodeWindow = xcode.focusedWindow {
592-
xcodeWindow.isFullScreen && xcode.isFrontmost
593-
} else {
594-
false
595-
}
596590

597591
let isXcodeActive = xcode?.isFrontmost ?? false
598592

599-
await [
593+
[
600594
windows.sharedPanelWindow,
601595
windows.suggestionPanelWindow,
602596
windows.widgetWindow,
@@ -608,11 +602,11 @@ extension WidgetWindowsController {
608602
}
609603

610604
if isXcodeActive, !windows.chatPanelWindow.isDetached {
611-
await windows.chatPanelWindow.moveToActiveSpace()
605+
windows.chatPanelWindow.moveToActiveSpace()
612606
}
613607

614-
if await windows.fullscreenDetector.isOnActiveSpace, xcode?.focusedWindow != nil {
615-
await windows.orderFront()
608+
if windows.fullscreenDetector.isOnActiveSpace, xcode?.focusedWindow != nil {
609+
windows.orderFront()
616610
}
617611
}
618612
}

0 commit comments

Comments
 (0)