|
@@ -50,6 +50,7 @@ class KMImageToolTipWindow: KMAnimatedBorderlessWindow {
|
|
|
}
|
|
|
|
|
|
override func fadeOut() {
|
|
|
+ self.context = nil
|
|
|
self.point = .zero
|
|
|
super.fadeOut()
|
|
|
}
|
|
@@ -81,8 +82,8 @@ extension KMImageToolTipWindow {
|
|
|
@objc private func _showDelayed() {
|
|
|
let thePoint = self.point == .zero ? NSEvent.mouseLocation : self.point
|
|
|
var contentRect: NSRect = .zero
|
|
|
- var screenRect = NSScreen.screen(for: thePoint)?.frame ?? .zero
|
|
|
- var image = self.context?.toolTipImage()
|
|
|
+ let screenRect = NSScreen.screen(for: thePoint)?.frame ?? .zero
|
|
|
+ let image = self.context?.toolTipImage()
|
|
|
if (image != nil) {
|
|
|
self.backgroundImage = image
|
|
|
|