1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

updatemanager: change the order of the constructor input parameter

Make the LRCInstance pointer pass correctly into updatemanager

Change-Id: I87f22fcf69d69babae3ec6de8b6b20eb5d2c652b
This commit is contained in:
Ming Rui Zhang 2021-03-25 17:27:16 -04:00
parent 5295e4aa5b
commit 37d548bb75
2 changed files with 4 additions and 4 deletions

View file

@ -36,8 +36,8 @@ static constexpr int updatePeriod = 1000 * 60 * 60 * 24; // one day in millis
UpdateManager::UpdateManager(const QString& url,
ConnectivityMonitor* cm,
QObject* parent,
LRCInstance* instance)
LRCInstance* instance,
QObject* parent)
: NetWorkManager(cm, parent)
, baseUrl_(url.isEmpty() ? "https://dl.jami.net/windows" : url.toLatin1())
, tempPath_(Utils::WinGetEnv("TEMP"))

View file

@ -30,8 +30,8 @@ class UpdateManager final : public NetWorkManager
public:
explicit UpdateManager(const QString& url,
ConnectivityMonitor* cm,
QObject* parent = nullptr,
LRCInstance* instance = nullptr);
LRCInstance* instance = nullptr,
QObject* parent = nullptr);
~UpdateManager() = default;
Q_INVOKABLE void checkForUpdates(bool quiet = false);