Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

Commit 6c71cfe

Browse files
committed
Fix that launch helper is not terminated if the app is already running.
1 parent 141a7e0 commit 6c71cfe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Fixed
44
- Fix that the app will not auto start sometimes.
5+
- Fix some logic in auto start.
56

67
## 0.10.6
78

SpechtLiteLaunchHelper/AppDelegate.m

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
2121
NSString *path = [NSString pathWithComponents:pathComponents];
2222
NSString *binaryPath = [[NSBundle bundleWithPath:path] executablePath];
2323
[[NSWorkspace sharedWorkspace] launchApplication:binaryPath];
24-
[NSApp terminate:nil];
2524
}
26-
}
2725

26+
[NSApp terminate:nil];
27+
}
28+
2829
@end

0 commit comments

Comments
 (0)