File tree Expand file tree Collapse file tree
Core/Sources/SuggestionWidget Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,9 +82,12 @@ final class ChatPanelWindow: WidgetWindow {
8282 setIsVisible ( true )
8383 isPanelDisplayed = false
8484
85+ var wasDetached = false
8586 storeObserver. observe { [ weak self] in
8687 guard let self else { return }
8788 let isDetached = store. isDetached
89+ guard isDetached != wasDetached else { return }
90+ wasDetached = isDetached
8891 Task { @MainActor in
8992 if UserDefaults . shared. value ( for: \. disableFloatOnTopWhenTheChatPanelIsDetached) {
9093 self . setFloatOnTop ( !isDetached)
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ Another convenient method to access commands is by using the `⇧⌘/` shortcut
132132
133133#### Setting Up Global Hotkeys
134134
135- Currently, the is only one global hotkey you can set to show/hide the widgets under the General tab from the host app.
135+ Currently, there is only one global hotkey you can set to show/hide the widgets under the General tab from the host app.
136136
137137When this hotkey is not set to enabled globally, it will only work when the service app or Xcode is active.
138138
You can’t perform that action at this time.
0 commit comments