Set the correct facility for the reflectometry GUI
The reflectometry GUI sets the default instrument in the config service when it starts up to one of the ISIS reflectometers. This commit adds a check that the facility is ISIS and if not it sets the facility to ISIS. This avoids confusion where you essentially have invalid config. It also avoids confusion where e.g. loading runs from the default archive might not work because the archive may be a different facility. I have also added code to save the new config settings to file. Again this is to avoid confusion between what users see in mantid and what is in the saved settings. It is particularly confusing otherwise because Workbench will write settings to file when it closes but MantidPlot will not. Re #27241
Showing
- qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.cpp 19 additions, 3 deletions.../ISISReflectometry/GUI/MainWindow/MainWindowPresenter.cpp
- qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.h 1 addition, 0 deletions...es/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.h
- qt/scientific_interfaces/ISISReflectometry/GUI/RunsTable/QtRunsTableView.cpp 0 additions, 1 deletion...faces/ISISReflectometry/GUI/RunsTable/QtRunsTableView.cpp
- qt/scientific_interfaces/test/ISISReflectometry/MainWindow/MainWindowPresenterTest.h 37 additions, 0 deletions...st/ISISReflectometry/MainWindow/MainWindowPresenterTest.h
Please register or sign in to comment