File tree Expand file tree Collapse file tree
src_qt6/EasyReflectometryApp/Gui Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments