| 423 | } |
| 424 | |
| 425 | void MainWindow::save_config() |
| 426 | { |
| 427 | if (_device_agent->have_instance() == false) |
| 428 | { |
| 429 | dsv_info("There is no need to save the configuration"); |
| 430 | return; |
| 431 | } |
| 432 | |
| 433 | AppConfig &app = AppConfig::Instance(); |
| 434 | |
| 435 | if (_device_agent->is_hardware()){ |
| 436 | QString sessionFile = gen_config_file_path(true); |
| 437 | save_config_to_file(sessionFile); |
| 438 | } |
| 439 | |
| 440 | app.frameOptions.windowState = saveState(); |
| 441 | app.SaveFrame(); |
| 442 | } |
| 443 | |
| 444 | QString MainWindow::gen_config_file_path(bool isNewFormat) |
| 445 | { |
nothing calls this directly
no test coverage detected