Skip to content

Commit

Permalink
[ui] Reload the list of templates after "Save As Template"
Browse files Browse the repository at this point in the history
  • Loading branch information
cbentejac committed Sep 1, 2022
1 parent 594d05a commit 3aa97bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions meshroom/ui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions meshroom/ui/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ ApplicationWindow {
onAccepted: {
_reconstruction.saveAsTemplate(file)
closed(Platform.Dialog.Accepted)
MeshroomApp.reloadTemplateList()
}
onRejected: closed(Platform.Dialog.Rejected)
}
Expand Down

0 comments on commit 3aa97bf

Please sign in to comment.