You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I have a issue when closing the update dialog once download have finished. I give more context:
Our application do hide it's view if does found an update (we force the user to update to continue using the software). So if the user closes the update dialog when the package was already downloaded instead of click the "install" button, app will not be shown again as we don't receive any other event from WinSparkle.
When the updater finishes (closed by the user or installation starts) we would like run some checks after closing, but I don't see such behavior in this specific case above described.
We are using:
WinSparkle V0.8.1
Windows 11 Pro - Build 22631.3447
I took the liberty to check how was the "quit" behavior programmed and check how it would fit our needs. I found that in the void UpdateDialog::OnClose(wxCloseEvent&) method, at the end, there's an if preventing ApplicationController::NotifyUpdateCancelled(); to be called if an update was already downloaded. I didn't want to mess with the current behavior of the library so I did just create a new event that will be executed always on WinSparkle update closed (yes, even when it closes successfully). This way I can suscribe to that behavior with a callback and do what I need to do without affecting the rest of usages.
I will submit a PR with the changes, what do you think?
Thanks in advance,
Bruno Bibbó
The text was updated successfully, but these errors were encountered:
Make sure that the callback function set with
win_sparkle_set_update_cancelled_callback() is called even when the user
just closes the window without clicking any button. Previously, this
wouldn't be done.
Do the same for the similar win_sparkle_set_update_dismissed_callback().
Document the difference between the two more clearly.
Fixes#127, fixes#271.
Hi! I have a issue when closing the update dialog once download have finished. I give more context:
Our application do hide it's view if does found an update (we force the user to update to continue using the software). So if the user closes the update dialog when the package was already downloaded instead of click the "install" button, app will not be shown again as we don't receive any other event from WinSparkle.
When the updater finishes (closed by the user or installation starts) we would like run some checks after closing, but I don't see such behavior in this specific case above described.
We are using:
I took the liberty to check how was the "quit" behavior programmed and check how it would fit our needs. I found that in the
void UpdateDialog::OnClose(wxCloseEvent&)
method, at the end, there's an if preventingApplicationController::NotifyUpdateCancelled();
to be called if an update was already downloaded. I didn't want to mess with the current behavior of the library so I did just create a new event that will be executed always on WinSparkle update closed (yes, even when it closes successfully). This way I can suscribe to that behavior with a callback and do what I need to do without affecting the rest of usages.I will submit a PR with the changes, what do you think?
Thanks in advance,
Bruno Bibbó
The text was updated successfully, but these errors were encountered: