Skip to content

Commit

Permalink
fixed changing wifi not dismissing dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
twocanoes committed Mar 17, 2023
1 parent 7a3d451 commit 9ef8493
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions XCreds Login Overlay/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
waitWindow.setFrameOrigin(newPos)
waitWindow.makeKeyAndOrderFront(self)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {


if AuthorizationDBManager.shared.rightExists(right: "loginwindow:login"){
TCSLogWithMark("setting standard login back to XCreds login")
try? "".write(toFile: "/tmp/xcreds_return", atomically: false, encoding: .utf8)
Expand Down
6 changes: 5 additions & 1 deletion XCreds/MainController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ class MainController: NSObject {

}
}
ScheduleManager.shared.startCredentialCheck()
//delay startup to give network time to settle.
Timer.scheduledTimer(withTimeInterval: 15, repeats: false) { timer in
ScheduleManager.shared.startCredentialCheck()
}

}

//get local password either from keychain or prompt. If prompt, then it will save in keychain for next time. if keychain, get keychain and test to make sure it is valid.
Expand Down
Binary file not shown.

0 comments on commit 9ef8493

Please sign in to comment.