From 1276ecdbb769a249a969e8d34749b8f245c3031e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 6 Nov 2016 23:01:08 +0100 Subject: NOISSUE ask user if closing is OK when instances are still running --- application/MultiMC.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'application/MultiMC.h') diff --git a/application/MultiMC.h b/application/MultiMC.h index 7f45e873..b4087ef3 100644 --- a/application/MultiMC.h +++ b/application/MultiMC.h @@ -144,6 +144,11 @@ public: InstanceWindow *showInstanceWindow(InstancePtr instance, QString page = QString()); MainWindow *showMainWindow(bool minimized = false); + size_t numRunningInstances() + { + return m_runningInstances; + } + public slots: void launch(InstancePtr instance, bool online = true, BaseProfilerFactory *profiler = nullptr); @@ -208,6 +213,7 @@ private: }; std::map m_instanceExtras; size_t m_openWindows = 0; + size_t m_runningInstances = 0; // main window, if any MainWindow * m_mainWindow = nullptr; -- cgit v1.2.3