app: activate mode from scpi

Fix missing activation of gui mode components
This commit is contained in:
Kiara Navarro 2022-07-10 10:45:56 -05:00
parent 0b7c3d5416
commit f56e32488e
No known key found for this signature in database
GPG Key ID: CBA9F2172CE33FBA

View File

@ -586,6 +586,8 @@ void AppWindow::SetupSCPI()
}
if(mode) {
mode->activate();
int index = modeHandler->findIndex(mode);
modeHandler->setCurrentIndex(index);
return SCPI::getResultName(SCPI::Result::Empty);
} else {
return SCPI::getResultName(SCPI::Result::Error);