diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-01 01:25:04 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-01 01:25:04 +0100 |
commit | fe68d5946073d92bc585b2b5372c420218807c91 (patch) | |
tree | d85c710d4f3844e8ab04e94575f6244c151f4bd5 /application/LaunchController.h | |
parent | 4b03dfcbd77f50d1f8fa3eb9d661ebcba764b9ba (diff) | |
download | MultiMC-fe68d5946073d92bc585b2b5372c420218807c91.tar MultiMC-fe68d5946073d92bc585b2b5372c420218807c91.tar.gz MultiMC-fe68d5946073d92bc585b2b5372c420218807c91.tar.lz MultiMC-fe68d5946073d92bc585b2b5372c420218807c91.tar.xz MultiMC-fe68d5946073d92bc585b2b5372c420218807c91.zip |
GH-1645 reimplement open/close instance window based on settings
Diffstat (limited to 'application/LaunchController.h')
-rw-r--r-- | application/LaunchController.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/application/LaunchController.h b/application/LaunchController.h index 55cb1e58..4cc240e8 100644 --- a/application/LaunchController.h +++ b/application/LaunchController.h @@ -17,6 +17,10 @@ public: { m_instance = instance; } + InstancePtr instance() + { + return m_instance; + } void setOnline(bool online) { m_online = online; @@ -29,6 +33,14 @@ public: { m_parentWidget = widget; } + void setShowConsole(bool showConsole) + { + m_showConsole = showConsole; + } + QString id() + { + return m_instance->id(); + } private: void login(); @@ -37,9 +49,14 @@ private: private slots: void readyForLaunch(); + void onSucceeded(); + void onFailed(QString reason); + void onProgressRequested(Task *task); + private: BaseProfilerFactory *m_profiler = nullptr; bool m_online = true; + bool m_showConsole = false; InstancePtr m_instance; QWidget * m_parentWidget = nullptr; InstanceWindow *m_console = nullptr; |