Fix default language issue for demo device

This commit is contained in:
DreamSourceLab 2019-10-31 18:04:26 -07:00
parent 15013c2626
commit 04606c6835
2 changed files with 1 additions and 2 deletions

View File

@ -877,7 +877,7 @@ bool MainWindow::load_session_json(QJsonDocument json, bool file_dev)
// check language
if (sessionObj.contains("Language")) {
switchLanguage(sessionObj["Language"].toInt());
} else {
} else if (sessionObj.contains("Operation Mode")) {
bool language_matched = _session.get_device()->set_config(NULL, NULL, SR_CONF_OPERATION_MODE,
g_variant_new_string(sessionObj["Operation Mode"].toString().toUtf8()));
if (!language_matched) {

View File

@ -1,7 +1,6 @@
{
"Device": "virtual-demo",
"DeviceMode": 1,
"Language": 25,
"Pattern mode": "Sine",
"Sample count": "10000",
"Sample rate": "100000000",