mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 08:44:25 +08:00
Fix converting URL to local path in setDefaultPath
It is a method, not a static function. Contributes to issue CURA-3297.
This commit is contained in:
parent
1a4d71c3f8
commit
307896cb41
@ -400,7 +400,7 @@ class CuraApplication(QtApplication):
|
||||
|
||||
@pyqtSlot(str, str)
|
||||
def setDefaultPath(self, key, default_path):
|
||||
Preferences.getInstance().setValue("local_file/%s" % key, QUrl.toLocalFile(default_path))
|
||||
Preferences.getInstance().setValue("local_file/%s" % key, QUrl(default_path).toLocalFile())
|
||||
|
||||
## Handle loading of all plugin types (and the backend explicitly)
|
||||
# \sa PluginRegistery
|
||||
|
Loading…
x
Reference in New Issue
Block a user