Skip to content

Commit 59ab7e8

Browse files
committed
showed Create New Account button in migration modal
1 parent f418394 commit 59ab7e8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Profile Manifest/com.twocanoes.xcreds.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ Note that Google does not support the offline_access scope so instead use the pr
591591
<key>pfm_default</key>
592592
<false/>
593593
<key>pfm_description</key>
594-
<string>Prompt for local account username and password if no account was mapped</string>
594+
<string>Prompt for local account username and password if no account was mapped and there are standard users already on the system.</string>
595595
<key>pfm_documentation_url</key>
596596
<string>https://twocanoes.com/knowledge-base/xcreds-admin-guide/#shouldPromptForMigration</string>
597597
<key>pfm_name</key>

XCredsLoginPlugIn/LoginWindow/VerifyLocalCredentialsWindowController.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ class VerifyLocalCredentialsWindowController: NSWindowController, NSWindowDelega
1616
var username:String?
1717
var password:String?
1818
var shouldCreateNewAccount:Bool?=false
19-
19+
var shouldShowCreateNewAccountButton:Bool?=true
2020
override func windowDidLoad() {
2121
super.windowDidLoad()
2222

2323
}
2424
func windowDidBecomeKey(_ notification: Notification) {
25-
if let shouldCreateNewAccount = shouldCreateNewAccount{
26-
createNewAccountButton.isHidden = !shouldCreateNewAccount
25+
if let shouldShowCreateNewAccountButton = shouldShowCreateNewAccountButton{
26+
createNewAccountButton.isHidden = !shouldShowCreateNewAccountButton
2727
}
2828
}
2929

0 commit comments

Comments
 (0)