Skip to content

Commit c72af91

Browse files
committed
Force suggestion panel to order front
1 parent 9c49d3e commit c72af91

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ public extension SuggestionWidgetController {
252252
suggestionPanelViewModel.content = .suggestion(suggestion)
253253
chatWindowViewModel.isPanelDisplayed = true
254254
suggestionPanelViewModel.isPanelDisplayed = true
255+
panelWindow.orderFront(nil)
255256
}
256257
}
257258
}
@@ -272,6 +273,7 @@ public extension SuggestionWidgetController {
272273
chatWindowViewModel.isPanelDisplayed = true
273274
suggestionPanelViewModel.isPanelDisplayed = true
274275
widgetViewModel.isProcessing = false
276+
panelWindow.orderFront(nil)
275277
}
276278

277279
func presentChatRoom(fileURL: URL) {
@@ -291,6 +293,7 @@ public extension SuggestionWidgetController {
291293
// looks like we need a delay.
292294
try await Task.sleep(nanoseconds: 150_000_000)
293295
NSApplication.shared.activate(ignoringOtherApps: true)
296+
panelWindow.orderFront(nil)
294297
}
295298
}
296299
}
@@ -315,6 +318,7 @@ public extension SuggestionWidgetController {
315318
// looks like we need a delay.
316319
try await Task.sleep(nanoseconds: 150_000_000)
317320
NSApplication.shared.activate(ignoringOtherApps: true)
321+
panelWindow.orderFront(nil)
318322
}
319323
}
320324
}

0 commit comments

Comments
 (0)