mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:16:01 +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:
|
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…
x
Reference in New Issue
Block a user