| 11 | #include "Viewport.h" |
| 12 | |
| 13 | void FileTransferController::onOpenSimulationDialog() |
| 14 | { |
| 15 | GenericFileDialog::get().showOpenFileDialog( |
| 16 | "Open simulation", "Simulation file (*.sim){.sim},.*", _referencePath, [&](std::filesystem::path const& filename) { |
| 17 | auto filenameCopy = filename; |
| 18 | _referencePath = filenameCopy.remove_filename().string(); |
| 19 | onOpenSimulation(filename); |
| 20 | |
| 21 | }); |
| 22 | } |
| 23 | |
| 24 | void FileTransferController::onOpenSimulation(std::filesystem::path const& filename) |
| 25 | { |
no test coverage detected