Skip to content

Commit

Permalink
dispose popups when they are hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleroy committed Jul 31, 2022
1 parent 225958a commit 9d14715
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/ui/phantom.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def __init__(self, view: sublime.View, location: int = -1, on_close: Optional[Ca
self.created_popup = False

def on_hide(self) -> None:
self.is_closed = True
self.is_closed = True
self.dispose()

if self.on_close:
self.on_close()

Expand Down

0 comments on commit 9d14715

Please sign in to comment.