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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user