summaryrefslogtreecommitdiffstats
path: root/application/MultiMC.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-05-02 23:29:47 +0200
committerPetr Mrázek <peterix@gmail.com>2017-05-02 23:29:47 +0200
commit907aa367046bde6ad05893917cff11320019ddda (patch)
treec937c84bb16ae224b38a0ca9b6f489bf8ee1580b /application/MultiMC.h
parent6a8bb3691b9e30bcb90003eead34b287010cf17f (diff)
downloadMultiMC-907aa367046bde6ad05893917cff11320019ddda.tar
MultiMC-907aa367046bde6ad05893917cff11320019ddda.tar.gz
MultiMC-907aa367046bde6ad05893917cff11320019ddda.tar.lz
MultiMC-907aa367046bde6ad05893917cff11320019ddda.tar.xz
MultiMC-907aa367046bde6ad05893917cff11320019ddda.zip
GH-1874 Do not allow launching instances during an update
Diffstat (limited to 'application/MultiMC.h')
-rw-r--r--application/MultiMC.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/MultiMC.h b/application/MultiMC.h
index 48be3b22..de768a98 100644
--- a/application/MultiMC.h
+++ b/application/MultiMC.h
@@ -151,6 +151,7 @@ public:
return m_runningInstances;
}
+ void updateIsRunning(bool running);
bool updatesAreAllowed();
signals:
@@ -227,8 +228,11 @@ private:
shared_qobject_ptr<LaunchController> controller;
};
std::map<QString, InstanceXtras> m_instanceExtras;
+
+ // main state variables
size_t m_openWindows = 0;
size_t m_runningInstances = 0;
+ bool m_updateRunning = false;
// main window, if any
MainWindow * m_mainWindow = nullptr;