| 68 | } |
| 69 | |
| 70 | Ret ProjectActionsController::openProject(const ProjectFile& file) |
| 71 | { |
| 72 | LOGI() << "Try open project: url = " << file.url.toString() << ", displayNameOverride = " << file.displayNameOverride; |
| 73 | |
| 74 | if (file.isNull()) { |
| 75 | muse::io::path_t askedPath = selectOpeningFile(); |
| 76 | |
| 77 | if (askedPath.empty()) { |
| 78 | return make_ret(Ret::Code::Cancel); |
| 79 | } |
| 80 | |
| 81 | return openProject(askedPath); |
| 82 | } |
| 83 | |
| 84 | if (file.url.isLocalFile()) { |
| 85 | return openProject(file.path(), file.displayNameOverride); |
| 86 | } |
| 87 | |
| 88 | // if (file.url.scheme() == AUDACITY_URL_SCHEME) { |
| 89 | // return openMuseScoreUrl(file.url); |
| 90 | // } |
| 91 | |
| 92 | return make_ret(Err::UnsupportedUrl); |
| 93 | } |
| 94 | |
| 95 | void ProjectActionsController::newProject() |
| 96 | { |
nothing calls this directly
no test coverage detected