Added a static "app version" method.

CURA-3335 Single instance Cura and model reloading
This commit is contained in:
Simon Edwards 2017-02-13 11:57:34 +01:00
parent 94439eddd4
commit 234130eb7a

View File

@ -405,6 +405,10 @@ class CuraApplication(QtApplication):
def setDefaultPath(self, key, default_path): def setDefaultPath(self, key, default_path):
Preferences.getInstance().setValue("local_file/%s" % key, QUrl(default_path).toLocalFile()) 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) ## Handle loading of all plugin types (and the backend explicitly)
# \sa PluginRegistery # \sa PluginRegistery
def _loadPlugins(self): def _loadPlugins(self):