diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-06 21:58:54 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-06 21:58:54 +0100 |
commit | 8b952b387041341f556edcf0bb34576a2fc88568 (patch) | |
tree | 804b8976355ef3950628647370e7dfc1bdf96b4f /application/MultiMC.h | |
parent | 37cc59c04d0573a42d67242135495c0a0729f965 (diff) | |
download | PrismLauncher-8b952b387041341f556edcf0bb34576a2fc88568.tar.gz PrismLauncher-8b952b387041341f556edcf0bb34576a2fc88568.tar.bz2 PrismLauncher-8b952b387041341f556edcf0bb34576a2fc88568.zip |
NOISSUE Refactor and sanitize MultiMC startup/shutdown
* Always create main window.
* Properly handle netowrk manager - it was created twice, leading to potential crashes.
Diffstat (limited to 'application/MultiMC.h')
-rw-r--r-- | application/MultiMC.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/application/MultiMC.h b/application/MultiMC.h index 4deb95d1..7f45e873 100644 --- a/application/MultiMC.h +++ b/application/MultiMC.h @@ -142,7 +142,9 @@ public: bool openJsonEditor(const QString &filename); InstanceWindow *showInstanceWindow(InstancePtr instance, QString page = QString()); - MainWindow *showMainWindow(); + MainWindow *showMainWindow(bool minimized = false); + +public slots: void launch(InstancePtr instance, bool online = true, BaseProfilerFactory *profiler = nullptr); private slots: |