mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-13 13:32:53 +08:00
Fix default language issue for demo device
This commit is contained in:
parent
15013c2626
commit
04606c6835
@ -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) {
|
||||
|
@ -1,7 +1,6 @@
|
||||
{
|
||||
"Device": "virtual-demo",
|
||||
"DeviceMode": 1,
|
||||
"Language": 25,
|
||||
"Pattern mode": "Sine",
|
||||
"Sample count": "10000",
|
||||
"Sample rate": "100000000",
|
||||
|
Loading…
x
Reference in New Issue
Block a user