UI: Cut release text from dashes.

This commit is contained in:
Nodir Temirkhodjaev 2019-12-06 15:12:22 +05:00
parent 3614a46f14
commit 01f3f5d0d8

View File

@ -60,6 +60,12 @@ bool TaskUpdateChecker::parseBuffer(const QByteArray &buffer)
m_releaseNotes = map["body"].toString(); // ChangeLog
// Cut release text from dashes
const int releaseDashesPos = m_releaseNotes.indexOf("---");
if (releaseDashesPos > 0) {
m_releaseNotes.truncate(releaseDashesPos);
}
// Assets
const QVariantMap assetMap = assets.first().toMap();