Skip to content

Commit

Permalink
Fix isAutomaticConnectionEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Oct 11, 2024
1 parent c103fa2 commit 4aa9738
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Pulse 5.x

## Pulse 5.1.2

- Fix an issue with `isAutomaticConnectionEnabled` not starting the browser the first time it's enabled

## Pulse 5.1.1

*Sep 19, 2024*
Expand Down
2 changes: 1 addition & 1 deletion Demo/Sources/iOS/Pulse_Demo_iOSApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private final class AppViewModel: ObservableObject {
// This code registers the store with the `RemoteLogger` (important!)
LoggerStore.shared = .demo

RemoteLogger.shared.isAutomaticConnectionEnabled = true
// RemoteLogger.shared.isAutomaticConnectionEnabled = true

// NetworkLogger.enableProxy()

Expand Down
3 changes: 2 additions & 1 deletion Sources/Pulse/RemoteLogger/RemoteLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ public final class RemoteLogger: ObservableObject, RemoteLoggerConnectionDelegat
/// requires Bluetooth, it will trigger a prompt on the first app run.
public var isAutomaticConnectionEnabled = false {
didSet {
isEnabled = true
guard isAutomaticConnectionEnabled else { return }
enable()
}
}

Expand Down

0 comments on commit 4aa9738

Please sign in to comment.