New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow using custom update channels #27
Conversation
Something weird is going on when you cancel the It looks like the System panel is being refreshed, and half of the time the focus is being "lost", returning to the main menu, ie. click on |
url = url + '/releases.json' | ||
data = self.oe.load_url(url) | ||
if not data is None: | ||
update_json = json.loads(self.oe.load_url(url)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is loading the url a second time if it worked the first time, doubling the network overhead... shouldn't this be:
+ update_json = json.loads(data)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep that will work better
updated, I'm still not sure why the focus is being lost... |
Thanks, updated version is working better (fewer downloads of However there's a problem when downloading:
I don't think you're escaping/quoting the url so the hash (#) isn't converted to %23. There's also no visual indication that the download has failed - it fails silently. |
It also looks like it has created the download file in |
@MilhouseVH I updated this, it should now work properly if the user has no internet connection or if they input the wrong url. |
should be good to go, let me know if the strings make sense.