Skip to content

Commit

Permalink
[ui] Application: Changing the current project refreshes the NodeEdit…
Browse files Browse the repository at this point in the history
…or to reset the current Tab index
  • Loading branch information
waaake committed Dec 31, 2024
1 parent a2f4ac5 commit 3f47c54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion meshroom/core/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def isLoading(self):

@property
def isSaving(self):
""" Return True if the graph is currently being loaded. """
""" Return True if the graph is currently being saved. """
return self._saving

Check warning on line 259 in meshroom/core/graph.py

View check run for this annotation

Codecov / codecov/patch

meshroom/core/graph.py#L259

Added line #L259 was not covered by tests

@Slot(str)
Expand Down
10 changes: 10 additions & 0 deletions meshroom/ui/qml/Application.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ Page {
property alias unsavedDialog: unsavedDialog
property alias workspaceView: workspaceView

readonly property var scenefile: _reconstruction ? _reconstruction.graph.filepath : "";

onScenefileChanged: {
// Check if we're not currently saving and emit the currentProjectChanged signal
if (! _reconstruction.graph.isSaving) {
// Refresh the NodeEditor
nodeEditor.refresh();
}
}

Settings {
id: settingsUILayout
category: "UILayout"
Expand Down

0 comments on commit 3f47c54

Please sign in to comment.