fix(ManagedPackPage): better changelog text when fetching / no changelog

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-11-12 11:49:21 -03:00
parent 968366c2ae
commit 04dbe28793
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469
2 changed files with 8 additions and 1 deletions

View File

@ -219,6 +219,9 @@ void ModrinthManagedPackPage::parseManagedPack()
netJob->deleteLater();
delete response;
});
ui->changelogTextBrowser->setText(tr("Fetching changelogs..."));
netJob->start();
}

View File

@ -168,7 +168,11 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QTextBrowser" name="changelogTextBrowser"/>
<widget class="QTextBrowser" name="changelogTextBrowser">
<property name="placeholderText">
<string>No changelog available for this version!</string>
</property>
</widget>
</item>
</layout>
</widget>