Skip to content

Commit

Permalink
improve: delete self.config.logger
Browse files Browse the repository at this point in the history
  • Loading branch information
hishizuka committed Nov 29, 2023
1 parent 425e526 commit d09cb19
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/pyqt/pyqt_button_box_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ def gui_lap_reset(self):
== self.config.button_config.G_BUTTON_LONG_PRESS
):
app_logger.info("reset")
self.config.logger.reset_count()
self.config.gui.map_widget.reset_track()
self.config.gui.reset_count()
self.lap_button_count = 0
elif self.lap_button._state == 1:
self.lap_button._state = 0
self.lap_button_count = 0
else:
self.config.logger.count_laps()
self.config.gui.count_laps()

def gui_start_and_stop_quit(self):
if self.start_button.isDown():
Expand All @@ -85,7 +84,7 @@ def gui_start_and_stop_quit(self):
self.start_button._state = 0
self.start_button_count = 0
else:
self.config.logger.start_and_stop_manual()
self.config.gui.start_and_stop_manual()

def change_start_stop_button(self, status):
icon = icons.PauseIcon() if status == "START" else icons.NextIcon()
Expand Down

0 comments on commit d09cb19

Please sign in to comment.