2
0
forked from Ivasoft/DSView

The device can only be accessed by one process

This commit is contained in:
dreamsourcelabTAI
2023-05-11 10:36:52 +08:00
parent 1f8487e0f1
commit ae5c4e63c3
6 changed files with 45 additions and 13 deletions

View File

@@ -1837,20 +1837,20 @@ namespace pv
case DSV_MSG_NEW_USB_DEVICE:
{
_sampling_bar->update_device_list();
if (_session->get_device()->is_demo() == false)
{
QString msgText = L_S(STR_PAGE_MSG, S_ID(IDS_MSG_TO_SWITCH_DEVICE), "To switch the new device?");
if (MsgBox::Confirm(msgText) == false){
_sampling_bar->update_device_list(); // Update the list only.
if (MsgBox::Confirm(msgText) == false){
return;
}
}
// The store confirm is not processed.
if (_is_save_confirm_msg){
_is_auto_switch_device = true;
_sampling_bar->update_device_list();
_is_auto_switch_device = true;
return;
}