Skip to content

Commit 129905f

Browse files
committed
Detach chat when open from menu bar
1 parent 921657c commit 129905f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public final class GraphicalUserInterfaceController {
3636

3737
public func openGlobalChat() {
3838
UserDefaults.shared.set(true, for: \.useGlobalChat)
39+
suggestionWidget.detachChat()
3940
let dataSource = WidgetDataSource.shared
4041
let fakeFileURL = URL(fileURLWithPath: "/")
4142
Task {

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ public final class SuggestionWidgetController: NSObject {
224224
}
225225
}
226226
}
227+
228+
public func detachChat() {
229+
chatWindowViewModel.chatPanelInASeparateWindow = true
230+
}
227231
}
228232

229233
// MARK: - Handle Events

0 commit comments

Comments
 (0)