Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions Bellerophon/Bellerophon/Sources/BPManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ public class BellerophonManager: NSObject {
}
}
}

public func dismissKillSwitchIfNeeded() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name isn't very explicit, maybe keep this function internal, and create a new public function with a more descriptive name that calls this one?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dominicancrum any updates on this PR?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the recent changes to the kill switch I think this can actually be closed @ThibaultKlein

guard killSwitchWindow.isKeyWindow else {
return
}

delegate?.bellerophonWillDisengage?(self)
mainWindow?.makeKeyAndVisible()
killSwitchWindow.isHidden = true
}

// MARK: internal Methods

Expand Down Expand Up @@ -142,15 +152,6 @@ public class BellerophonManager: NSObject {
killSwitchWindow.makeKeyAndVisible()
}

internal func dismissKillSwitchIfNeeded() {
guard killSwitchWindow.isKeyWindow else {
return
}

delegate?.bellerophonWillDisengage?(self)
mainWindow?.makeKeyAndVisible()
killSwitchWindow.isHidden = true
}

internal func startAutoChecking(_ status: BellerophonObservable) {
if retryTimer == nil {
Expand Down