Update template title when creating file from template

This commit is contained in:
Veronica Berglyd Olsen
2025-07-17 15:31:03 +02:00
parent 133d3c7151
commit 20709145c8
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -667,7 +667,7 @@ class GuiProjectTree(QTreeView):
if itemType == nwItemType.FILE:
if tHandle := SHARED.project.newFile(newLabel, sHandle, sPos):
if copyDoc:
SHARED.project.copyFileContent(tHandle, copyDoc)
SHARED.project.copyFileContent(tHandle, copyDoc, newLabel)
elif hLevel > 0:
SHARED.project.writeNewFile(tHandle, hLevel, not nNote)
SHARED.project.index.reIndexHandle(tHandle)