Skip to content

Commit

Permalink
Methods implemented as defaults in interface not visible for responds…
Browse files Browse the repository at this point in the history
…ToSelector:
  • Loading branch information
dkocher committed Nov 20, 2024
1 parent f28be6a commit 0609525
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,15 @@ public void updaterWillRelaunchApplication(final SPUUpdater updater) {
public String feedURLStringForUpdater(final ID updater) {
return SparklePeriodicUpdateChecker.this.getFeedUrl();
}

@Override
public boolean updaterShouldRelaunchApplication(SPUUpdater updater) {
return true;
}

@Override
public boolean updaterShouldPromptForPermissionToCheckForUpdates(SPUUpdater updater) {
return false;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ public interface SPUUpdaterDelegate {
* @param updater The updater instance.
* @return YES if the updater should be relaunched, otherwise NO if it shouldn’t.
*/
default boolean updaterShouldRelaunchApplication(SPUUpdater updater) {
return true;
}
boolean updaterShouldRelaunchApplication(SPUUpdater updater);

/**
* Called immediately before relaunching.
Expand All @@ -64,9 +62,7 @@ default void updaterWillRelaunchApplication(SPUUpdater updater) {
* @param updater The updater instance.
* @return YES if the updater should prompt for permission to check for new updates automatically, otherwise NO
*/
default boolean updaterShouldPromptForPermissionToCheckForUpdates(SPUUpdater updater) {
return false;
}
boolean updaterShouldPromptForPermissionToCheckForUpdates(SPUUpdater updater);

/**
* Called when a new valid update is found by the update driver.
Expand Down

0 comments on commit 0609525

Please sign in to comment.