aboutsummaryrefslogtreecommitdiff
path: root/launcher/launch/steps/Update.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:04:53 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:04:53 +0300
commit91eb30f03795921b48360b79bdb739dcd0f10f17 (patch)
tree1a2fccbbbf4751cf2cf6f6418cb525dcee5f2acd /launcher/launch/steps/Update.h
parenta3ffa6455021b69bd1940b65fefb3b6177c96730 (diff)
parentae793f6cf11658c9abc5111e82d5ba7b3e6af127 (diff)
downloadPrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.tar.gz
PrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.tar.bz2
PrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into pack_changelog
Diffstat (limited to 'launcher/launch/steps/Update.h')
-rw-r--r--launcher/launch/steps/Update.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/launcher/launch/steps/Update.h b/launcher/launch/steps/Update.h
index ce40611e..9262cdbe 100644
--- a/launcher/launch/steps/Update.h
+++ b/launcher/launch/steps/Update.h
@@ -15,30 +15,29 @@
#pragma once
-#include <launch/LaunchStep.h>
-#include <QObjectPtr.h>
#include <LoggedProcess.h>
+#include <QObjectPtr.h>
#include <java/JavaChecker.h>
+#include <launch/LaunchStep.h>
#include <net/Mode.h>
// FIXME: stupid. should be defined by the instance type? or even completely abstracted away...
-class Update: public LaunchStep
-{
+class Update : public LaunchStep {
Q_OBJECT
-public:
- explicit Update(LaunchTask *parent, Net::Mode mode):LaunchStep(parent), m_mode(mode) {};
- virtual ~Update() {};
+ public:
+ explicit Update(LaunchTask* parent, Net::Mode mode) : LaunchStep(parent), m_mode(mode){};
+ virtual ~Update(){};
void executeTask() override;
bool canAbort() const override;
void proceed() override;
-public slots:
+ public slots:
bool abort() override;
-private slots:
+ private slots:
void updateFinished();
-private:
+ private:
Task::Ptr m_updateTask;
bool m_aborted = false;
Net::Mode m_mode = Net::Mode::Offline;