Skip to content

Commit c33a132

Browse files
committed
Run intruded event if wake without unlock
1 parent 33bbe3e commit c33a132

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

BLEUnlock/AppDelegate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate, NSMenuItemVa
308308

309309
@objc func onDisplayWake() {
310310
print("display wake")
311-
unlockedAt = Date().timeIntervalSince1970
311+
//unlockedAt = Date().timeIntervalSince1970
312312
displaySleep = false
313313
wakeTimer?.invalidate()
314314
wakeTimer = nil
@@ -343,7 +343,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate, NSMenuItemVa
343343
Timer.scheduledTimer(withTimeInterval: 2, repeats: false, block: { _ in
344344
print("onUnlock")
345345
if Date().timeIntervalSince1970 >= self.unlockedAt + 10 {
346-
if self.ble.unlockRSSI != self.ble.UNLOCK_DISABLED && !self.prefs.bool(forKey: "wakeWithoutUnlocking") {
346+
if self.ble.unlockRSSI != self.ble.UNLOCK_DISABLED {
347347
self.runScript("intruded")
348348
}
349349
self.playNowPlaying()

BLEUnlock/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.12.1</string>
20+
<string>1.12.2</string>
2121
<key>CFBundleVersion</key>
22-
<string>778</string>
22+
<string>796</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.utilities</string>
2525
<key>LSMinimumSystemVersion</key>

0 commit comments

Comments
 (0)