mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Added a static "app version" method.
CURA-3335 Single instance Cura and model reloading
This commit is contained in:
parent
94439eddd4
commit
234130eb7a
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user