Skip to content

Commit 4818634

Browse files
committed
Prevent the chat window size and position being reset when it's hidden
1 parent 7485ff2 commit 4818634

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

Core/Sources/SuggestionWidget/FeatureReducers/WidgetFeature.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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)