Skip to content

Commit

Permalink
Continue to show update notification on quit if automatic install is …
Browse files Browse the repository at this point in the history
…enabled
  • Loading branch information
lucasderraugh committed Nov 22, 2021
1 parent b78489f commit 8fdf63e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions GitUp/Application/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -584,4 +584,11 @@ - (void)updater:(SUUpdater*)updater willInstallUpdate:(SUAppcastItem*)item {
XLOG_INFO(@"Installing app update for version %@", item.versionString);
}

- (void)updater:(SUUpdater*)updater willInstallUpdateOnQuit:(SUAppcastItem*)item immediateInstallationInvocation:(NSInvocation*)invocation {
XLOG_INFO(@"Will install app update for version %@ on quit", item.versionString);
[self _showNotificationWithTitle:NSLocalizedString(@"Update Available", nil)
action:NULL
message:NSLocalizedString(@"Relaunch GitUp to update to version %@ (%@).", nil), item.displayVersionString, item.versionString];
}

@end

0 comments on commit 8fdf63e

Please sign in to comment.