diff --git a/modules/button_config.py b/modules/button_config.py index 96961560..9f761b0c 100644 --- a/modules/button_config.py +++ b/modules/button_config.py @@ -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()