ui: fix dialog memory leak (#36767)

* weakref alternative

* and here

* clean up

* fix

* rm
This commit is contained in:
Shane Smiskol
2025-12-04 01:56:38 -08:00
committed by GitHub
parent 93f2076c7e
commit 45b7d60263
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ class NavWidget(Widget, abc.ABC):
def set_back_enabled(self, enabled: bool | Callable[[], bool]) -> None:
self._back_enabled = enabled
def set_back_callback(self, callback: Callable[[], None]) -> None:
def set_back_callback(self, callback: Callable[[], None] | None) -> None:
self._back_callback = callback
def _handle_mouse_event(self, mouse_event: MouseEvent) -> None: