Skip to content

Commit 4b670cf

Browse files
committed
reset timing
1 parent 5d305e9 commit 4b670cf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src_qt6/EasyReflectometryApp/Gui/ApplicationWindow.qml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ EaComponents.ApplicationWindow {
3030
fontIcon: "backspace"
3131
ToolTip.text: qsTr("Reset to initial state without project, models and data")
3232
onClicked: {
33-
Globals.References.resetActive = false
34-
Globals.BackendWrapper.projectReset()
35-
Globals.References.applicationWindow.appBarCentralTabs.projectButton.toggle()
3633
if (Globals.References.applicationWindow.appBarCentralTabs.sampleButton !== null) {
3734
Globals.References.applicationWindow.appBarCentralTabs.sampleButton.enabled = false
3835
}
@@ -45,6 +42,10 @@ EaComponents.ApplicationWindow {
4542
if (Globals.References.applicationWindow.appBarCentralTabs.summaryButton !== null) {
4643
Globals.References.applicationWindow.appBarCentralTabs.summaryButton.enabled = false
4744
}
45+
46+
Globals.BackendWrapper.projectReset()
47+
Globals.References.applicationWindow.appBarCentralTabs.projectButton.toggle()
48+
Globals.References.resetActive = false
4849
}
4950
}
5051
]

0 commit comments

Comments
 (0)