From bef4772cfb414ff2e466f541d65c77a6b02b1eb5 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 13 Feb 2025 17:07:25 -0500 Subject: Associate a RemoteProject to a Project when applicable --- project.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'project.cpp') 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 Project::GetRemoteProject() +{ + + BNRemoteProject* project = BNProjectGetRemoteProject(m_object); + if (project == nullptr) + return nullptr; + return new Collaboration::RemoteProject(project); +} + + ProjectFile::ProjectFile(BNProjectFile* file) { m_object = file; -- cgit v1.3.1