-
Notifications
You must be signed in to change notification settings - Fork 269
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
Add option to auto install after download when using win_sparkle_check_update_with_ui() #229
base: master
Are you sure you want to change the base?
Conversation
I don't think it makes much sense to have this configurable — if the current UI is bad, then it should be improved unconditionally. The flow mirrors that of Sparkle for Mac, but perhaps with bad labels:
The reason for explicit confirmation in step 3 is that step 2 may be lengthy and unpredictable. You don't want the app to shut down under the user's hands a minute or two later, when they started working on something. If I understand what you dislike correctly, then the "proper" solution is to add support for downloading updates in the background before the prompt with release notes is even shown (Sparkle for Mac supports this too). Then there would be a single Install update action, which would be instantaneous. |
Definitely! Though, aren't we already doing this if we call
Agreed - that would be a lot nicer, or alternatively: download starts when the dialog is opened (showing progress) and the "Install update" button is only enabled after the download is complete. |
Well, yes, but the context is a bit different, see #77 — it's essentially meant for forced updates at launch. Which part of the UI do you take issue with? That the button is labeled the same, or that an extra click is required? Renaming the first "Install update" to "Download update" probably makes sense to address the former... |
The feedback from several customers has been something like this: "We already made the decision to install the update when we first clicked 'Install update' - why do we have to click it again after the download?" I understand this feedback. So perhaps just renaming the first button to "Download update" might be enough for now. Though, I also think that auto-installing after the download is not so unexpected to the user as he/she had just clicked "Install update" a few seconds / minutes prior - this is the motivation for this PR. Anyway, will close this PR for now - I'll investigate downloading the update earlier and making this a single-click workflow when I get some time. |
When
win_sparkle_check_update_with_ui()
is used to allow the user to manually check for an update (i.e. via a menu item), the flow is the following (assuming an update is available):This PR allows the additional (and maybe redundant?) confirmation at Step (5) to be skipped and the update to be automatically installed after downloading, via an arg:
win_sparkle_check_update_with_ui(1);
This is achieved in code by using two flags for the auto logic: one each for download and install