Skip to content

Commit

Permalink
Merge pull request #19 from Ptosiek/clean-code
Browse files Browse the repository at this point in the history
Clean code
  • Loading branch information
hishizuka authored Sep 19, 2023
2 parents 2e37dc0 + 3056fd4 commit 1afb405
Show file tree
Hide file tree
Showing 56 changed files with 425 additions and 582 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/log/
/screenshot/
/maptile/*
/course/ridewithgps/*
/course/*html*
/courses/ridewithgps/*
/courses/*html*
/.idea/
/.vscode/
/.venv/
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion modules/button_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def __init__(self, config):
self.config = config

def press_button(self, button_hard, press_button, index):
if self.config.gui == None or self.config.gui.stack_widget == None:
if self.config.gui is None or self.config.gui.stack_widget is None:
return

w_index = self.config.gui.stack_widget.currentIndex()
Expand Down
Loading

0 comments on commit 1afb405

Please sign in to comment.