Skip to content

Commit

Permalink
Update profiler calls to remove_item_from_application_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Aug 31, 2021
1 parent 1760513 commit 87c2efb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spyder/plugins/profiler/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,9 @@ def on_preferences_teardown(self):
@on_plugin_teardown(plugin=Plugins.MainMenu)
def on_main_menu_teardown(self):
mainmenu = self.get_plugin(Plugins.MainMenu)
run_action = self.get_action(ProfilerActions.ProfileCurrentFile)

run_menu = mainmenu.get_application_menu(ApplicationMenus.Run)
mainmenu.remove_item_from_application_menu(run_action, menu=run_menu)
mainmenu.remove_item_from_application_menu(
ProfilerActions.ProfileCurrentFile, menu_id=ApplicationMenus.Run)

# --- Public API
# ------------------------------------------------------------------------
Expand Down

0 comments on commit 87c2efb

Please sign in to comment.