Add website button

This commit is contained in:
woblight
2024-07-28 09:59:40 +02:00
parent 5c026927f9
commit e4c577d90b
4 changed files with 38 additions and 0 deletions
+10
View File
@@ -640,6 +640,16 @@ QString Addon::path() const
return m_path;
}
QUrl Addon::getUrl() const
{
git_remote *remote = nullptr;
if (git_remote_lookup(&remote, m_repo.get(), m_remote.toLocal8Bit()))
return QUrl();
auto url = QUrl(git_remote_url(remote));
git_remote_free(remote);
return url;
}
void Addon::closeRepo()
{
m_repo.reset();