disable mode selection if selection was done
This commit is contained in:
parent
155ac6b471
commit
f803854da3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user