| 355 | |
| 356 | |
| 357 | void Scene::onPathDrop(const PathDropEvent& e) { |
| 358 | if (e.paths.size() >= 1) { |
| 359 | const std::string& path = e.paths[0]; |
| 360 | std::string extension = system::getExtension(path); |
| 361 | |
| 362 | if (extension == ".vcv") { |
| 363 | APP->patch->loadPathDialog(path); |
| 364 | e.consume(this); |
| 365 | return; |
| 366 | } |
| 367 | if (extension == ".vcvs") { |
| 368 | APP->scene->rack->loadSelection(path); |
| 369 | e.consume(this); |
| 370 | return; |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | OpaqueWidget::onPathDrop(e); |
| 375 | } |
| 376 | |
| 377 | |
| 378 | } // namespace app |
no test coverage detected