Skip to content

Commit 8194a7d

Browse files
committed
Only bring the chat window to the front when it's floating
1 parent 1c54ea2 commit 8194a7d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Core/Sources/SuggestionWidget/WidgetWindowsController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,9 @@ public final class WidgetWindows {
755755
toastWindow.orderFrontRegardless()
756756
sharedPanelWindow.orderFrontRegardless()
757757
suggestionPanelWindow.orderFrontRegardless()
758-
chatPanelWindow.orderFrontRegardless()
758+
if chatPanelWindow.level.rawValue > NSWindow.Level.normal.rawValue {
759+
chatPanelWindow.orderFrontRegardless()
760+
}
759761
}
760762
}
761763

0 commit comments

Comments
 (0)