menu: fixing input gcode run issue on edit start
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
parent
37c379ddc5
commit
9459549db3
|
@ -884,6 +884,10 @@ class MenuManager:
|
|||
current = container.selected_item()
|
||||
if isinstance(current, MenuContainer):
|
||||
self.stack_push(current)
|
||||
elif isinstance(current, MenuInput):
|
||||
if current.is_editing():
|
||||
current.run_script('gcode', event=event)
|
||||
current.run_script(event)
|
||||
elif isinstance(current, MenuCommand):
|
||||
current.run_script('gcode', event=event)
|
||||
current.run_script(event)
|
||||
|
|
Loading…
Reference in New Issue