Skip to content

Commit ae6c551

Browse files
committed
Merge branch 'feature/fix-detached-window-resized-repositioned-once-displayed' into develop
2 parents 7485ff2 + 23b7f3c commit ae6c551

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

Core/Sources/SuggestionWidget/FeatureReducers/WidgetFeature.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public struct WidgetFeature: ReducerProtocol {
208208
await send(.updateWindowOpacity(immediately: false))
209209
if isDetached {
210210
Task { @MainActor in
211-
windows.chatPanelWindow.alphaValue = 1
211+
windows.chatPanelWindow.isWindowHidden = false
212212
}
213213
}
214214
}
@@ -539,13 +539,7 @@ public struct WidgetFeature: ReducerProtocol {
539539
}
540540

541541
if isChatPanelDetached {
542-
if windows.chatPanelWindow.alphaValue == 0 {
543-
windows.chatPanelWindow.setFrame(
544-
widgetLocation.defaultPanelLocation.frame,
545-
display: false,
546-
animate: animated
547-
)
548-
}
542+
// don't update it!
549543
} else {
550544
windows.chatPanelWindow.setFrame(
551545
widgetLocation.defaultPanelLocation.frame,

0 commit comments

Comments
 (0)