| 457 | |
| 458 | |
| 459 | void Scene::onPathDrop(const PathDropEvent& e) { |
| 460 | if (e.paths.size() >= 1) { |
| 461 | const std::string& path = e.paths[0]; |
| 462 | std::string extension = system::getExtension(path); |
| 463 | |
| 464 | if (extension == ".vcv") { |
| 465 | patchUtils::loadPathDialog(path); |
| 466 | e.consume(this); |
| 467 | return; |
| 468 | } |
| 469 | if (extension == ".vcvs") { |
| 470 | APP->scene->rack->loadSelection(path); |
| 471 | e.consume(this); |
| 472 | return; |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | OpaqueWidget::onPathDrop(e); |
| 477 | } |
| 478 | |
| 479 | |
| 480 | } // namespace app |
nothing calls this directly
no test coverage detected