Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit f70ec32

Browse files
committed
only set project name in project ini file if it is not yet set
1 parent c203c0a commit f70ec32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pugdebug/models/projects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def __init__(self, project_name):
2727
self.safe_name
2828
)
2929

30-
self.setValue('project/name', self.project_name)
30+
if not self.contains('project/name'):
31+
self.setValue('project/name', self.project_name)
3132

3233
def get_project_name(self):
3334
return self.project_name

0 commit comments

Comments
 (0)