Skip to content

Commit

Permalink
Notify update handlers regardless of other prompt when not user initi…
Browse files Browse the repository at this point in the history
…ated.
  • Loading branch information
dkocher committed Nov 20, 2024
1 parent 0609525 commit e4a59bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public boolean standardUserDriverShouldHandleShowingScheduledUpdate_andInImmedia

@Override
public void standardUserDriverWillHandleShowingUpdate_forUpdate_state(final boolean handleShowingUpdate, final SUAppcastItem item, final SPUUserUpdateState state) {
if(!handleShowingUpdate) {
if(!state.userInitiated()) {
for(Handler handler : handlers) {
log.debug("Notify handler {} with update {}", handler, item);
if(handler.handle(new Update(item.versionString(), item.displayVersionString()))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ public abstract class SPUUserUpdateState extends NSObject {
/**
* @return Indicates whether the update check was initiated by the user.
*/
abstract boolean userInitiated();
public abstract boolean userInitiated();
}

0 comments on commit e4a59bd

Please sign in to comment.