Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Oct 5, 2021
1 parent 895bd84 commit 36e53bf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 2 additions & 4 deletions spyder/plugins/maininterpreter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def on_preferences_available(self):
def on_statusbar_available(self):
# Add status widget
statusbar = self.get_plugin(Plugins.StatusBar)
if statusbar:
statusbar.add_status_widget(self.interpreter_status)
statusbar.add_status_widget(self.interpreter_status)

@on_plugin_teardown(plugin=Plugins.Preferences)
def on_preferences_teardown(self):
Expand All @@ -101,8 +100,7 @@ def on_preferences_teardown(self):
def on_statusbar_teardown(self):
# Add status widget
statusbar = self.get_plugin(Plugins.StatusBar)
if statusbar:
statusbar.remove_status_widget(self.interpreter_status.ID)
statusbar.remove_status_widget(self.interpreter_status.ID)

# ---- Public API
def get_interpreter(self):
Expand Down
7 changes: 7 additions & 0 deletions spyder/plugins/outlineexplorer/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ def on_completions_teardown(self):
completions.sig_stop_completions.disconnect(
self.stop_symbol_services)

@on_plugin_teardown(plugin=Plugins.Editor)
def on_editor_teardown(self):
editor = self.get_plugin(Plugins.Editor)

editor.sig_open_files_finished.disconnect(
self.update_all_editors)

#------ Public API ---------------------------------------------------------
def restore_scrollbar_position(self):
"""Restoring scrollbar position after main window is visible"""
Expand Down
4 changes: 3 additions & 1 deletion spyder/plugins/profiler/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ def on_main_menu_teardown(self):
mainmenu = self.get_plugin(Plugins.MainMenu)

mainmenu.remove_item_from_application_menu(
ProfilerActions.ProfileCurrentFile, menu_id=ApplicationMenus.Run)
ProfilerActions.ProfileCurrentFile,
menu_id=ApplicationMenus.Run
)

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

0 comments on commit 36e53bf

Please sign in to comment.