Use "project name" consistently on the GUI

This commit is contained in:
Veronica Berglyd Olsen
2022-05-22 16:23:49 +02:00
parent a541c90690
commit f7e31bd452
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -87,7 +87,7 @@ class NWProject():
self.projFiles = [] # A list of all files in the content folder on load self.projFiles = [] # A list of all files in the content folder on load
# Project Meta # Project Meta
self.projName = "" # Project name (working title) self.projName = "" # Project name
self.bookTitle = "" # The final title; should only be used for exports self.bookTitle = "" # The final title; should only be used for exports
self.bookAuthors = [] # A list of book authors self.bookAuthors = [] # A list of book authors
@@ -956,8 +956,8 @@ class NWProject():
return True return True
def setProjectName(self, projName): def setProjectName(self, projName):
"""Set the project name (working title), This is the the title """Set the project name, This is the the name used for backup
used for backup files etc. files etc.
""" """
self.projName = simplified(projName) self.projName = simplified(projName)
self.setProjectChanged(True) self.setProjectChanged(True)
+1 -1
View File
@@ -187,7 +187,7 @@ class GuiProjectEditMain(QWidget):
self.editName.setMaximumWidth(xW) self.editName.setMaximumWidth(xW)
self.editName.setText(self.theProject.projName) self.editName.setText(self.theProject.projName)
self.mainForm.addRow( self.mainForm.addRow(
self.tr("Working title"), self.tr("Project name"),
self.editName, self.editName,
self.tr("Should be set only once.") self.tr("Should be set only once.")
) )
+1 -1
View File
@@ -1397,7 +1397,7 @@ class GuiMain(QMainWindow):
return True return True
def _updateWindowTitle(self, projName=None): def _updateWindowTitle(self, projName=None):
"""Set the window title and add the project's working title. """Set the window title and add the project's name.
""" """
winTitle = self.mainConf.appName winTitle = self.mainConf.appName
if projName is not None: if projName is not None: