Skip to content

Commit

Permalink
Final review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Oct 1, 2021
1 parent 901875f commit f962f2f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions spyder/plugins/pylint/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,11 @@ def on_preferences_teardown(self):

@on_plugin_teardown(plugin=Plugins.Projects)
def on_projects_teardown(self):
widget = self.get_widget()

# Connect to projects
# Disconnect from projects
projects = self.get_plugin(Plugins.Projects)
projects.sig_project_loaded.disconnect(self._set_project_dir)
projects.sig_project_closed.disconnect(self._unset_project_dir)

self._set_project_dir = None
self._unset_project_dir = None

@on_plugin_teardown(plugin=Plugins.MainMenu)
def on_main_menu_teardown(self):
mainmenu = self.get_plugin(Plugins.MainMenu)
Expand Down

0 comments on commit f962f2f

Please sign in to comment.