Skip to content

Commit 3f47c54

Browse files
committed
[ui] Application: Changing the current project refreshes the NodeEditor to reset the current Tab index
1 parent a2f4ac5 commit 3f47c54

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

meshroom/core/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def isLoading(self):
255255

256256
@property
257257
def isSaving(self):
258-
""" Return True if the graph is currently being loaded. """
258+
""" Return True if the graph is currently being saved. """
259259
return self._saving
260260

261261
@Slot(str)

meshroom/ui/qml/Application.qml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ Page {
2020
property alias unsavedDialog: unsavedDialog
2121
property alias workspaceView: workspaceView
2222

23+
readonly property var scenefile: _reconstruction ? _reconstruction.graph.filepath : "";
24+
25+
onScenefileChanged: {
26+
// Check if we're not currently saving and emit the currentProjectChanged signal
27+
if (! _reconstruction.graph.isSaving) {
28+
// Refresh the NodeEditor
29+
nodeEditor.refresh();
30+
}
31+
}
32+
2333
Settings {
2434
id: settingsUILayout
2535
category: "UILayout"

0 commit comments

Comments
 (0)