-
I noticed that Sparkle sets
(my emphasis) But I'm curious why What is the rationale for enabling the "check for updates" button when it won't work? I'm sure there is a good reason, since it is clearly documented that this is intentional, but it's really baffling me why it works this way. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It's supposed to be so that if there is UI available to be shown, checking for updates will bring that UI to frontmost focus. Imagine if the update alert window is behind other windows in the app the user is using for example, or if the user driver decided to defer showing the UI immediately. if (_showingPermissionRequest || _driver.showingUpdate) {
if ([_userDriver respondsToSelector:@selector(showUpdateInFocus)]) {
[_userDriver showUpdateInFocus];
}
return;
} And there are also cases where canCheckForUpdates should be NO while sessionInProgress is YES, like when downloads/update checks are happening in the background automatically, and Sparkle isn't equipped to show UI while this is occurring. |
Beta Was this translation helpful? Give feedback.
It's supposed to be so that if there is UI available to be shown, checking for updates will bring that UI to frontmost focus. Imagine if the update alert window is behind other windows in the app the user is using for example, or if the user driver decided to defer showing the UI immediately.
And there are also cases where canCheckForUpdates should be NO while sessionInProgress is YES, like when downloads/update checks are happening in the background automatically, and Sparkle isn…