2
0
forked from Ivasoft/DSView

Add a status for start/stop the device

This commit is contained in:
dreamsourcelabTAI
2023-05-09 15:06:58 +08:00
parent 94df65e1d7
commit 5ce643f35e
3 changed files with 36 additions and 2 deletions

View File

@@ -857,6 +857,11 @@ namespace pv
// start or stop capture
void SamplingBar::on_run_stop()
{
if (_session->is_doing_action()){
dsv_info("Task is busy.");
return;
}
if (_session->is_working())
{
_run_stop_action->setEnabled(false);
@@ -921,6 +926,11 @@ namespace pv
return;
}
if (_session->is_doing_action()){
dsv_info("Task is busy.");
return;
}
if (_session->is_working())
{
_instant_action->setEnabled(false);