mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -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:
|
||||
if item["id"] == plugin["id"]:
|
||||
plugin["update_url"] = item["file_location"]
|
||||
print("Updating from", item["file_location"])
|
||||
|
||||
return self._plugins_model
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ Component {
|
|||
bold: true
|
||||
}
|
||||
color: pluginInfo.color
|
||||
|
||||
}
|
||||
|
||||
Text {
|
||||
|
@ -154,7 +155,7 @@ Component {
|
|||
if ( model.can_upgrade ) {
|
||||
manager.downloadAndInstallPlugin( model.update_url );
|
||||
} else {
|
||||
manager.downloadAndInstallPlugin( model.update_url );
|
||||
manager.downloadAndInstallPlugin( model.file_location );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue