| 1598 | } |
| 1599 | |
| 1600 | bool MainWindow::confirm_to_store_data() |
| 1601 | { |
| 1602 | bool ret = false; |
| 1603 | _is_save_confirm_msg = true; |
| 1604 | |
| 1605 | if (_session->have_hardware_data() && _session->is_first_store_confirm()) |
| 1606 | { |
| 1607 | // Only popup one time. |
| 1608 | ret = MsgBox::Confirm(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_SAVE_CAPDATE), "Save captured data?")); |
| 1609 | |
| 1610 | if (!ret && _is_auto_switch_device) |
| 1611 | { |
| 1612 | dsv_info("The data save confirm end, auto switch to the new device."); |
| 1613 | _is_auto_switch_device = false; |
| 1614 | |
| 1615 | if (_session->is_working()) |
| 1616 | _session->stop_capture(); |
| 1617 | |
| 1618 | _session->set_default_device(); |
| 1619 | } |
| 1620 | } |
| 1621 | |
| 1622 | _is_save_confirm_msg = false; |
| 1623 | return ret; |
| 1624 | } |
| 1625 | |
| 1626 | void MainWindow::check_config_file_version() |
| 1627 | { |
nothing calls this directly
no test coverage detected