mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 22:52:33 -06:00
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:
committed by
Vladimir Golovnev (glassez)
parent
3fca180e98
commit
dd5c934103
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user