| 1423 | } |
| 1424 | |
| 1425 | void 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 | |
| 1440 | void MainWindow::onFileLoaded( |
| 1441 | const QString& path, const QString& prefix, const QString& plugin_id, const QString& plugin_config_json) { |
nothing calls this directly
no test coverage detected