From 7837f79ee5a2b2f43eead522c8153c0365a3d754 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Mon, 8 Apr 2024 15:42:49 +0800 Subject: [PATCH] A hardware device is working, do not remind to switch new device --- DSView/pv/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DSView/pv/mainwindow.cpp b/DSView/pv/mainwindow.cpp index 8def2c46..2f7605c0 100644 --- a/DSView/pv/mainwindow.cpp +++ b/DSView/pv/mainwindow.cpp @@ -1950,6 +1950,11 @@ namespace pv _sampling_bar->update_device_list(); + //If the current device is working, do not remind to switch new device. + if (_session->get_device()->is_hardware() && _session->is_working()){ + return; + } + // If a saving task is running, not need to remind to switch device, // when the task end, the new device will be selected. if (_session->get_device()->is_demo() == false && !_is_save_confirm_msg)