Skip to content
Snippets Groups Projects
Commit 37d548bb authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

updatemanager: change the order of the constructor input parameter

Make the LRCInstance pointer pass correctly into updatemanager

Change-Id: I87f22fcf69d69babae3ec6de8b6b20eb5d2c652b
parent 5295e4aa
No related branches found
No related tags found
No related merge requests found
......@@ -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"))
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment