chat: fix comparison of versions with suffixes (#2772)

Pre-release and post-release suffixes are now interpreted correctly. Also fix comparison of incomplete versions.

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel
2024-07-30 13:20:52 -04:00
committed by GitHub
parent e45685b27a
commit 6b8e0f7ae4
3 changed files with 60 additions and 51 deletions

View File

@@ -57,6 +57,7 @@ class Download : public QObject
public:
static Download *globalInstance();
static std::strong_ordering compareAppVersions(const QString &a, const QString &b);
ReleaseInfo releaseInfo() const;
bool hasNewerRelease() const;
QString latestNews() const { return m_latestNews; }