mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Terminate application in the progress agent instead of user driver
This allows us to remove SPUUserDriverUIComponent and remove a bunch of logic in the user driver regarding termination. The user drivers generally don't need to know about the application bundle anymore, and strictly now only show UI events. This has another advantage of the agent being able to quit multiple instances of an application even if the application to update is sandboxed. We enforce the logic that an application can only be relaunched if it was running initially.
This commit is contained in:
1 parent
27ea7ca2f5
commit
46a75cde97
26 files changed
+123
-292
No files matched your search
@@ -46,9 +46,9 @@
|
||||
// If the user is holding down command, we use the popup title user driver instead
|
||||
id<SPUUserDriver, SPUStandardUserDriverProtocol> userDriver;
|
||||
if (self.customUserDriver) {
|
||||
userDriver = [[SUPopUpTitlebarUserDriver alloc] initWithApplicationBundle:applicationBundle window:self.window];
|
||||
userDriver = [[SUPopUpTitlebarUserDriver alloc] initWithWindow:self.window];
|
||||
} else {
|
||||
userDriver = [[SPUStandardUserDriver alloc] initWithHostBundle:hostBundle applicationBundle:applicationBundle delegate:nil];
|
||||
userDriver = [[SPUStandardUserDriver alloc] initWithHostBundle:hostBundle delegate:nil];
|
||||
}
|
||||
|
||||
self.userDriver = userDriver;
|
||||
|
||||
Reference in new issue
Block a user