mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 22:23:56 +08:00
remove unecessary function
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user