diff options
| author | Josh Ferrell <josh@vector35.com> | 2025-02-13 17:07:25 -0500 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2025-02-17 15:07:23 -0500 |
| commit | bef4772cfb414ff2e466f541d65c77a6b02b1eb5 (patch) | |
| tree | c5f94f173f1da5e6e5a9adc6b654fe0154fd6e99 /project.cpp | |
| parent | bcdc0d9b89605936a1cb6cf3ffaaece60d3c5777 (diff) | |
Associate a RemoteProject to a Project when applicable
Diffstat (limited to 'project.cpp')
| -rw-r--r-- | project.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/project.cpp b/project.cpp index 54e873dc..6072054f 100644 --- a/project.cpp +++ b/project.cpp @@ -522,6 +522,16 @@ void Project::EndBulkOperation() } +Ref<Collaboration::RemoteProject> Project::GetRemoteProject() +{ + + BNRemoteProject* project = BNProjectGetRemoteProject(m_object); + if (project == nullptr) + return nullptr; + return new Collaboration::RemoteProject(project); +} + + ProjectFile::ProjectFile(BNProjectFile* file) { m_object = file; |
