MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / save_config

Method save_config

DSView/pv/mainwindow.cpp:425–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

have_instanceMethod · 0.80
is_hardwareMethod · 0.80
SaveFrameMethod · 0.80

Tested by

no test coverage detected