Reimplement View Homepage

I removed it for some reason, but now it's back for all pages!

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2024-10-28 20:14:56 +00:00
parent 354a0ed46e
commit 2b22a1aebe
11 changed files with 90 additions and 24 deletions

View File

@@ -95,6 +95,14 @@ auto Resource::provider() const -> QString
return tr("Unknown");
}
auto Resource::homepage() const -> QString
{
if (metadata())
return ModPlatform::getMetaURL(metadata()->provider, metadata()->project_id);
return {};
}
void Resource::setMetadata(std::shared_ptr<Metadata::ModStruct>&& metadata)
{
if (status() == ResourceStatus::NO_METADATA)