Skip to content

Commit 997747a

Browse files
fix: MacOs tooltip destroy
Signed-off-by: Omkar Sarkar <omkarsarkar24@gmail.com>
1 parent 1bf9f22 commit 997747a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ardupilot_methodic_configurator/frontend_tkinter_show.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,12 +646,13 @@ def position_tooltip(self) -> None:
646646
# self.timers.pop("hide", None)
647647

648648
def force_hide(self) -> None:
649-
"""Immediately hide the tooltip globally across all OSs."""
649+
"""Immediately destroy the tooltip globally across all OSs."""
650650
self._cancel_show()
651651
self._cancel_hide()
652652
self._cancel_timer("alpha")
653653
if self.tooltip:
654-
self.tooltip.withdraw() # Withdraw instead of destroy to prevent UI jank
654+
self.tooltip.destroy()
655+
self.tooltip = None
655656
if Tooltip._active_tooltip is self:
656657
Tooltip._active_tooltip = None
657658

0 commit comments

Comments
 (0)