remove unecessary function

This commit is contained in:
Shane Smiskol
2025-12-03 20:00:19 -08:00
parent 83dad85cdd
commit 7ea6cfcbdf

View File

@@ -28,7 +28,7 @@ class DriverCameraDialog(NavWidget):
if not no_escape:
# TODO: this can grow unbounded, should be given some thought
device.add_interactive_timeout_callback(self.stop_dmonitoringmodeld)
self.set_back_callback(self._dismiss)
self.set_back_callback(self.stop_dmonitoringmodeld)
self.set_back_enabled(not no_escape)
# Load eye icons
@@ -58,9 +58,6 @@ class DriverCameraDialog(NavWidget):
def _handle_mouse_release(self, _):
ui_state.params.remove("DriverTooDistracted")
def _dismiss(self):
self.stop_dmonitoringmodeld()
def close(self):
if self._camera_view:
self._camera_view.close()