Skip to content

Commit 6023a6b

Browse files
committed
Merge branch 'main' into develop
2 parents de87761 + 9ff8a1c commit 6023a6b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Core/Sources/SuggestionWidget/ChatPanelWindow.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

137137
When this hotkey is not set to enabled globally, it will only work when the service app or Xcode is active.
138138

0 commit comments

Comments
 (0)