diff options
Diffstat (limited to 'api/logic/launch')
-rw-r--r-- | api/logic/launch/steps/Update.cpp | 2 | ||||
-rw-r--r-- | api/logic/launch/steps/Update.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/api/logic/launch/steps/Update.cpp b/api/logic/launch/steps/Update.cpp index f06c39eb..42ca3c67 100644 --- a/api/logic/launch/steps/Update.cpp +++ b/api/logic/launch/steps/Update.cpp @@ -23,7 +23,7 @@ void Update::executeTask() emitFailed(tr("Task aborted.")); return; } - m_updateTask.reset(m_parent->instance()->createUpdateTask()); + m_updateTask.reset(m_parent->instance()->createUpdateTask(m_mode)); if(m_updateTask) { connect(m_updateTask.get(), SIGNAL(finished()), this, SLOT(updateFinished())); diff --git a/api/logic/launch/steps/Update.h b/api/logic/launch/steps/Update.h index d855a1db..e9573bcd 100644 --- a/api/logic/launch/steps/Update.h +++ b/api/logic/launch/steps/Update.h @@ -19,13 +19,14 @@ #include <QObjectPtr.h> #include <LoggedProcess.h> #include <java/JavaChecker.h> +#include <net/Mode.h> // FIXME: stupid. should be defined by the instance type? or even completely abstracted away... class Update: public LaunchStep { Q_OBJECT public: - explicit Update(LaunchTask *parent):LaunchStep(parent) {}; + explicit Update(LaunchTask *parent, Net::Mode mode):LaunchStep(parent), m_mode(mode) {}; virtual ~Update() {}; void executeTask() override; @@ -40,4 +41,5 @@ private slots: private: shared_qobject_ptr<Task> m_updateTask; bool m_aborted = false; + Net::Mode m_mode = Net::Mode::Offline; }; |