GUI: changed which camera view is visible during mounting

This commit is contained in:
2025-11-05 15:17:59 +01:00
parent c727e93c76
commit 83496f6e22
+3 -4
View File
@@ -410,11 +410,10 @@ class MainWindow(QMainWindow):
"About",
"Aare Macromolecular Crystallography GUI\nVersion: 1.0\nCopyright: Paul Scherrer Institute 2024-2025",
)
#TODO tidy up mount and sampel view fucntions
@Slot()
def mount_view(self):
#WIP set view to beamline combined view
self.video_tab.setCurrentIndex(1)
self.video_tab.setCurrentIndex(3)
@Slot()
def sample_view(self):
@@ -424,7 +423,7 @@ class MainWindow(QMainWindow):
def update_daq_status(self, s: DAQStatusModel):
if not self.__mounting and s.state == BeamlineStateEnum.RobotSampleExchange:
self.__mounting = True
self.video_tab.setCurrentIndex(1)
self.video_tab.setCurrentIndex(3)
elif self.__mounting and s.state != BeamlineStateEnum.RobotSampleExchange:
self.__mounting = False
self.video_tab.setCurrentIndex(0)