Skip to content
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

Call update permission prompt delegate method only when needed #2622

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

zorgiepoo
Copy link
Member

@zorgiepoo zorgiepoo commented Sep 8, 2024

The delegate method is not called if SUEnableAutomaticChecks is specified in the Info.plist (now) or if the user has responded to a permission prompt request.

Also fixes a respondsToSelector check in legacy SUUpdater adaptor (fixes #2618).

Misc Checklist

  • My change requires a documentation update on Sparkle's website repository
  • My change requires changes to generate_appcast, generate_keys, or sign_update

Testing

I tested and verified my change by using one or multiple of these methods:

  • Sparkle Test App
  • Unit Tests
  • My own app
  • Other (please specify)

Tested clean state of test app where SUEnableAutomaticChecks is defined in the Info.plist as YES or NO, or if it's absent, and implementing permission prompt delegate method returning YES or NO.

macOS version tested: 14.6.1 (23G93)

The delegate method is not called if SUEnableAutomaticChecks is specified in the Info.plist or if the user has responded to a permission prompt request.
@zorgiepoo zorgiepoo added this to the 2.7 milestone Sep 8, 2024
@zorgiepoo zorgiepoo merged commit a5c26b5 into 2.x Sep 9, 2024
2 checks passed
@zorgiepoo zorgiepoo deleted the permission-prompt-fixes branch September 9, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The delegation code for updaterShouldPromptForPermissionToCheckForUpdates: seems incorrect.
1 participant