Add fallback to update mechanism

This brings a fallback version check to the update mechanism,
which should be as stable as it can be.
It will allow migrating to another primary mechanism without
having to have updated the older primary mechanism too.
This commit is contained in:
sledgehammer999 2025-06-29 22:25:34 +03:00 committed by Vladimir Golovnev (glassez)
parent 3fca180e98
commit dd5c934103
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
2 changed files with 69 additions and 11 deletions

View file

@ -55,8 +55,14 @@ signals:
private slots:
void rssDownloadFinished(const Net::DownloadResult &result);
void fallbackDownloadFinished(const Net::DownloadResult &result);
private:
QString m_newVersion;
void handleFinishedRequest();
bool shouldUseFallback() const;
mutable bool m_hasCompletedOneReq = false;
QString m_remoteVersion;
QString m_fallbackRemoteVersion;
QUrl m_updateURL;
};