Skip to content

Commit

Permalink
Merge branch 'PrismLauncher:develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegiwg authored Jul 19, 2024
2 parents 9dff8db + dcc58c8 commit ba4668e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
12 changes: 10 additions & 2 deletions launcher/meta/BaseEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@ class ParsingValidator : public Net::Validator {
virtual ~ParsingValidator() {};

public: /* methods */
bool init(QNetworkRequest&) override { return true; }
bool init(QNetworkRequest&) override
{
m_data.clear();
return true;
}
bool write(QByteArray& data) override
{
this->m_data.append(data);
return true;
}
bool abort() override { return true; }
bool abort() override
{
m_data.clear();
return true;
}
bool validate(QNetworkReply&) override
{
auto fname = m_entity->localFilename();
Expand Down
6 changes: 5 additions & 1 deletion launcher/net/ChecksumValidator.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ class ChecksumValidator : public Validator {
return true;
}

auto abort() -> bool override { return true; }
auto abort() -> bool override
{
m_checksum.reset();
return true;
}

auto validate(QNetworkReply&) -> bool override
{
Expand Down
2 changes: 1 addition & 1 deletion launcher/ui/pages/global/APIPage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Note: you only need to set this to access private data. Read the &lt;a href=&quot;https://docs.modrinth.com/api-spec/#section/Authentication&quot;&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Note: you only need to set this to access private data. Read the &lt;a href=&quot;https://docs.modrinth.com/#section/Authentication&quot;&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
Expand Down

0 comments on commit ba4668e

Please sign in to comment.