From 8b952b387041341f556edcf0bb34576a2fc88568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 6 Nov 2016 21:58:54 +0100 Subject: NOISSUE Refactor and sanitize MultiMC startup/shutdown * Always create main window. * Properly handle netowrk manager - it was created twice, leading to potential crashes. --- application/MultiMC.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'application/MultiMC.h') 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: -- cgit v1.2.3