Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hishizuka committed Nov 27, 2023
1 parent 3941e73 commit 249031d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/button_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ def press_button(self, button_hard, press_button, index):
self.G_PAGE_MODE = "MENU"

func_str = self.G_BUTTON_DEF[button_hard][self.G_PAGE_MODE][press_button][index]
if func_str == "":
func_str = "dummy"
if func_str in ("", "dummy"):
return

func = eval("self.config.gui." + func_str)
func()

Expand Down

0 comments on commit 249031d

Please sign in to comment.