disable mode selection if selection was done

This commit is contained in:
Jan Grewe 2024-03-13 09:19:23 +01:00
parent 155ac6b471
commit f803854da3

View File

@ -86,6 +86,7 @@ void CamConfigurator::modeChanged(int idx) {
stack->setCurrentIndex(1);
QString device = device_combo->currentText();
preview->setPrimaryCamera(device);
mode_combo->setEnabled(false);
} else if (idx == 2) {
qDebug() << "Mode changed to dual camera mode";
preview = stereoCameraView();
@ -100,6 +101,7 @@ void CamConfigurator::modeChanged(int idx) {
}
QString device2 = device_combo->itemText(1 - i);
preview->setSecondaryCamera(device2);
mode_combo->setEnabled(false);
} else {
qDebug() << "Mode changed mode selection";
stack->setCurrentIndex(0);