Skip to content

Commit afb1151

Browse files
committed
BugFix: delay PFMoveToApplicationsFolderIfNecessary Prevent break mmdb file
1 parent be134e7 commit afb1151

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ClashX/AppDelegate.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,13 @@ class AppDelegate: NSObject, NSApplicationDelegate {
2222

2323
let ssQueue = DispatchQueue(label: "com.w2fzu.ssqueue", attributes: .concurrent)
2424

25-
func applicationWillFinishLaunching(_ notification: Notification) {
26-
PFMoveToApplicationsFolderIfNecessary()
27-
}
28-
29-
3025

3126
func applicationDidFinishLaunching(_ aNotification: Notification) {
3227
signal(SIGPIPE, SIG_IGN)
3328

3429
_ = ProxyConfigManager.install()
30+
PFMoveToApplicationsFolderIfNecessary()
31+
3532
statusItem = NSStatusBar.system.statusItem(withLength: 57)
3633
let view = StatusItemView.create(statusItem: statusItem,statusMenu: statusMenu)
3734
statusItem.view = view

0 commit comments

Comments
 (0)