mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-23 13:42:55 +08:00
fix: The rate select is not disabled when the device is internal test mode
This commit is contained in:
parent
425ece4860
commit
41d06c0fb3
@ -1210,6 +1210,17 @@ namespace pv
|
||||
else{
|
||||
_sample_rate.setEnabled(bEnable);
|
||||
_sample_count.setEnabled(bEnable);
|
||||
|
||||
if (mode == LOGIC && _session->get_device()->is_hardware())
|
||||
{
|
||||
int mode_val = 0;
|
||||
if (_session->get_device()->get_config_value_int16(SR_CONF_OPERATION_MODE, mode_val)){
|
||||
if (mode_val == LO_OP_INTEST){
|
||||
_sample_rate.setEnabled(false);
|
||||
_sample_count.setEnabled(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (_session->is_working()){
|
||||
@ -1218,7 +1229,7 @@ namespace pv
|
||||
}
|
||||
else{
|
||||
_run_stop_button.setEnabled(true);
|
||||
_instant_button.setEnabled(true);
|
||||
_instant_button.setEnabled(true);
|
||||
}
|
||||
|
||||
QString iconPath = GetIconPath();
|
||||
|
Loading…
x
Reference in New Issue
Block a user