Skip to content

Commit

Permalink
console: make menu additions appear immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jul 18, 2023
1 parent 9a0b1f5 commit 21815c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MAVProxy/modules/mavproxy_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def cmd_menu_add(self, args):
name = menupath[-1]
cmd = '# ' + ' '.join(args[1:])
self.menu.add_to_submenu(menupath[:-1], MPMenuItem(name, name, cmd))
self.mpstate.console.set_menu(self.menu, self.menu_callback)

def cmd_menu(self, args):
'''control console menus'''
Expand Down

0 comments on commit 21815c4

Please sign in to comment.