Skip to content

Commit

Permalink
Update remove_item_from_application_menu call
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Aug 31, 2021
1 parent 2647d9f commit e10861d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spyder/plugins/breakpoints/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,8 @@ def on_editor_teardown(self):
@on_plugin_teardown(plugin=Plugins.MainMenu)
def on_main_menu_teardown(self):
mainmenu = self.get_plugin(Plugins.MainMenu)
list_action = self.get_action(BreakpointsActions.ListBreakpoints)
debug_menu = mainmenu.get_application_menu(ApplicationMenus.Debug)
mainmenu.remove_item_from_application_menu(list_action, debug_menu)
mainmenu.remove_item_from_application_menu(
BreakpointsActions.ListBreakpoints, menu_id=ApplicationMenus.Debug)

# --- Private API
# ------------------------------------------------------------------------
Expand Down

0 comments on commit e10861d

Please sign in to comment.