2
0
forked from Ivasoft/DSView

Disable the rate select for demo device

This commit is contained in:
dreamsourcelabTAI
2023-05-12 19:25:28 +08:00
parent e980b4bf07
commit 175cc9c0e4

View File

@@ -1274,7 +1274,14 @@ namespace pv
{
QString rand_mode = g_variant_get_string(gvar,NULL);
g_variant_unref(gvar);
_action_loop->setVisible(rand_mode == "RANDOM");
bool is_rand = rand_mode.toUpper() == "RANDOM";
_action_loop->setVisible(is_rand);
if (!is_rand){
_sample_rate.setEnabled(false);
_sample_count.setEnabled(false);
}
}
}
}