mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:48:58 +08: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
@ -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…
x
Reference in New Issue
Block a user