mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
Change download source
`update_url` is used only for updaitng plugins (when `file_location` refers to a place on the hard drive).
This commit is contained in:
parent
211f87bf09
commit
757f83fad2
2 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,6 @@ class PluginBrowser(QObject, Extension):
|
||||||
for item in self._plugins_metadata:
|
for item in self._plugins_metadata:
|
||||||
if item["id"] == plugin["id"]:
|
if item["id"] == plugin["id"]:
|
||||||
plugin["update_url"] = item["file_location"]
|
plugin["update_url"] = item["file_location"]
|
||||||
print("Updating from", item["file_location"])
|
|
||||||
|
|
||||||
return self._plugins_model
|
return self._plugins_model
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ Component {
|
||||||
bold: true
|
bold: true
|
||||||
}
|
}
|
||||||
color: pluginInfo.color
|
color: pluginInfo.color
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
@ -154,7 +155,7 @@ Component {
|
||||||
if ( model.can_upgrade ) {
|
if ( model.can_upgrade ) {
|
||||||
manager.downloadAndInstallPlugin( model.update_url );
|
manager.downloadAndInstallPlugin( model.update_url );
|
||||||
} else {
|
} else {
|
||||||
manager.downloadAndInstallPlugin( model.update_url );
|
manager.downloadAndInstallPlugin( model.file_location );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue