We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18aa2aa commit 3b1f2d0Copy full SHA for 3b1f2d0
1 file changed
Core/Sources/SuggestionWidget/ChatPanelWindow.swift
@@ -67,11 +67,9 @@ final class ChatPanelWindow: NSWindow {
67
.sink { [weak self] isDetached in
68
guard let self else { return }
69
if UserDefaults.shared.value(for: \.disableFloatOnTopWhenTheChatPanelIsDetached) {
70
- self.level = isDetached
71
- ? .init(NSWindow.Level.floating.rawValue)
72
- : .init(NSWindow.Level.mainMenu.rawValue + 1)
+ self.setFloatOnTop(!isDetached)
73
} else {
74
- self.level = .init(NSWindow.Level.mainMenu.rawValue + 1)
+ self.setFloatOnTop(true)
75
}
76
}.store(in: &cancellable)
77
0 commit comments