MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / onReloadDataRequested

Method onReloadDataRequested

pj_app/src/MainWindow.cpp:1425–1438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1423}
1424
1425void MainWindow::onReloadDataRequested() {
1426 const auto src = session_->sessionManager().lastLoadedSource();
1427 if (!src.has_value()) {
1428 return;
1429 }
1430 // Prevent re-entry; success re-enables via onFileLoaded.
1431 ui_->leftPanel->setReloadEnabled(false);
1432 LoadHints hints{
1433 .expected_plugin_id = src->plugin_id,
1434 .preset_config_json = src->plugin_config_json,
1435 .skip_dialog = !src->plugin_id.isEmpty() && !src->plugin_config_json.isEmpty(),
1436 };
1437 file_loader_->loadFile(src->path, this, hints);
1438}
1439
1440void MainWindow::onFileLoaded(
1441 const QString& path, const QString& prefix, const QString& plugin_id, const QString& plugin_config_json) {

Callers

nothing calls this directly

Calls 5

lastLoadedSourceMethod · 0.80
setReloadEnabledMethod · 0.80
sessionManagerMethod · 0.45
isEmptyMethod · 0.45
loadFileMethod · 0.45

Tested by

no test coverage detected