From cb691623c0979d8ae1d550d283e79b712d6a70f5 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Sun, 7 Apr 2024 10:45:45 +0800 Subject: [PATCH] If a saveing task is running, do not remind of new device connected --- DSView/pv/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DSView/pv/mainwindow.cpp b/DSView/pv/mainwindow.cpp index b9c1a4ce..47e6edb7 100644 --- a/DSView/pv/mainwindow.cpp +++ b/DSView/pv/mainwindow.cpp @@ -1949,7 +1949,9 @@ namespace pv _sampling_bar->update_device_list(); - if (_session->get_device()->is_demo() == false) + // 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) { QString msgText = L_S(STR_PAGE_MSG, S_ID(IDS_MSG_TO_SWITCH_DEVICE), "To switch the new device?");