mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 03:49:10 +00:00
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:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user