BIM: Fixed project manager's save/restore - fixes #20288
This commit is contained in:
committed by
Chris Hennes
parent
ba0e91beb1
commit
a2aa994897
@@ -435,7 +435,7 @@ class BIM_ProjectManager:
|
||||
s = "# FreeCAD BIM Project setup preset " + name + "\n"
|
||||
s += (
|
||||
"groupNewDocument="
|
||||
+ str(int(self.form.groupNewDocument.isChecked()))
|
||||
+ str(int(self.form.groupNewProject.isChecked()))
|
||||
+ "\n"
|
||||
)
|
||||
s += "projectName=" + self.form.projectName.text() + "\n"
|
||||
@@ -506,7 +506,7 @@ class BIM_ProjectManager:
|
||||
if line[0] != "#":
|
||||
s = line.split("=")
|
||||
if s[0] == "groupNewDocument":
|
||||
self.form.groupNewDocument.setChecked(bool(int(s[1])))
|
||||
self.form.groupNewProject.setChecked(bool(int(s[1])))
|
||||
elif s[0] == "projectName":
|
||||
self.form.projectName.setText(s[1])
|
||||
elif s[0] == "groupSite":
|
||||
|
||||
Reference in New Issue
Block a user