Remove vibrant layer before re-adding it

This commit is contained in:
Pete Schaffner
2024-02-11 13:52:11 +01:00
parent 1bcec0d49f
commit 595c1e222b

View File

@ -242,6 +242,7 @@ class TerminalWindow: NSWindow {
newTabButtonImageLayer = imageLayer
}
newTabButtonImageView.layer?.sublayers?.first(where: { $0.className == "VibrantLayer" })?.removeFromSuperlayer()
newTabButtonImageView.layer?.addSublayer(newTabButtonImageLayer!)
newTabButtonImageView.image = nil
// When we nil out the original image, the image view's frame resizes and repositions