Skip to content

Commit

Permalink
Fixed bug that modal disappears on first launch
Browse files Browse the repository at this point in the history
Closes #53.
  • Loading branch information
ts1 committed Sep 4, 2021
1 parent 749060a commit 2cd34b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BLEUnlock/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate, NSMenuItemVa
// Hide dock icon.
// This is required because we can't have LSUIElement set to true in Info.plist,
// otherwise CBCentralManager.scanForPeripherals won't work.
NSApp.setActivationPolicy(.prohibited)
NSApp.setActivationPolicy(.accessory)
}

func menuWillOpen(_ menu: NSMenu) {
Expand Down

0 comments on commit 2cd34b9

Please sign in to comment.