From 234130eb7af3bd0b51cb2a7c4b4d5d849bee0bc8 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Mon, 13 Feb 2017 11:57:34 +0100 Subject: [PATCH] Added a static "app version" method. CURA-3335 Single instance Cura and model reloading --- cura/CuraApplication.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 3e2099f8cb..49f1bac716 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -405,6 +405,10 @@ class CuraApplication(QtApplication): def setDefaultPath(self, key, default_path): Preferences.getInstance().setValue("local_file/%s" % key, QUrl(default_path).toLocalFile()) + @classmethod + def getStaticVersion(cls): + return CuraVersion + ## Handle loading of all plugin types (and the backend explicitly) # \sa PluginRegistery def _loadPlugins(self):