Skip to content

Commit

Permalink
Editor: Get active project path from the main widget
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed May 8, 2024
1 parent 4209795 commit c7f91e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spyder/plugins/editor/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ def can_close(self):
def on_close(self, cancelable=False):
widget = self.get_widget()

if not self._get_active_project_path():
if not self.get_widget().get_active_project_path():
filenames = widget.get_filenames()
self.set_conf('filenames', filenames)

Expand Down Expand Up @@ -1304,7 +1304,7 @@ def _start_project_workspace_services(self):
projects.start_workspace_services()

def _get_project_filenames(self):
if self._get_active_project_path():
if self.get_widget().get_active_project_path():
projects = self.get_plugin(Plugins.Projects, error=False)
return projects.get_project_filenames()

Expand Down

0 comments on commit c7f91e8

Please sign in to comment.