diff --git a/meshroom/ui/app.py b/meshroom/ui/app.py index 990d928be8..c6a15f78d0 100644 --- a/meshroom/ui/app.py +++ b/meshroom/ui/app.py @@ -188,6 +188,12 @@ def _pipelineTemplateFiles(self): templates.append(variant) return templates + @Slot() + def reloadTemplateList(self): + for f in meshroom.core.pipelineTemplatesFolders: + meshroom.core.loadPipelineTemplates(f) + self.pipelineTemplateFilesChanged.emit() + def _recentProjectFiles(self): projects = [] settings = QSettings() diff --git a/meshroom/ui/qml/main.qml b/meshroom/ui/qml/main.qml index 63f056f4cc..54763fa2b8 100755 --- a/meshroom/ui/qml/main.qml +++ b/meshroom/ui/qml/main.qml @@ -154,6 +154,7 @@ ApplicationWindow { onAccepted: { _reconstruction.saveAsTemplate(file) closed(Platform.Dialog.Accepted) + MeshroomApp.reloadTemplateList() } onRejected: closed(Platform.Dialog.Rejected) }