fix: hide the popup close button when the popup is disappearing (it was visible in some cases)

This commit is contained in:
Serhiy Mytrovtsiy
2022-05-06 17:09:40 +02:00
parent e82ace6595
commit 02dd72db42

View File

@@ -207,7 +207,9 @@ internal class PopupView: NSView {
documentView.scroll(NSPoint(x: 0, y: documentView.bounds.size.height))
}
}
internal func disappear() {}
internal func disappear() {
self.header.setCloseButton(false)
}
private func recalculateHeight(_ size: NSSize) {
var isScrollVisible: Bool = false