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:
Ian Paschal 2018-01-26 17:06:36 +01:00
parent 211f87bf09
commit 757f83fad2
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 );
} }
} }