Repo // Better handling with tooltip colors.

This commit is contained in:
ShikiSuen 2022-10-19 02:45:21 +08:00
parent 6060cc4fbf
commit 751824feef
2 changed files with 2 additions and 3 deletions

View File

@ -117,6 +117,7 @@ public class TooltipUI: NSWindowController {
}
public func hide() {
setColor(state: .normal)
window?.orderOut(nil)
}

View File

@ -62,9 +62,7 @@ extension SessionCtl {
do {
tooltipInstance.hide()
tooltipInstance = .init()
if state.type == .ofMarking {
tooltipInstance.setColor(state: state.data.tooltipColorState)
}
tooltipInstance.setColor(state: state.data.tooltipColorState)
}
//
tooltipInstance.show(