mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-30 19:33:49 +08:00
ui: fix dialog memory leak (#36767)
* weakref alternative * and here * clean up * fix * rm
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user