Skip to content

Commit

Permalink
Projects: Set project name when selecting existing directories in new…
Browse files Browse the repository at this point in the history
… project dialog
  • Loading branch information
ccordoba12 committed Nov 17, 2021
1 parent 4c57ecf commit 3223edf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spyder/plugins/projects/widgets/projectdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
# -----------------------------------------------------------------------------
"""Project creation dialog."""

from __future__ import print_function

# Standard library imports
import errno
import os.path as osp
Expand Down Expand Up @@ -171,6 +169,7 @@ def select_location(self):
if location and location != '.':
if is_writable(location):
self.location = location
self.text_project_name.setText(osp.basename(location))
self.update_location()

def update_location(self, text=''):
Expand Down

0 comments on commit 3223edf

Please sign in to comment.