Skip to content

Commit

Permalink
showed Create New Account button in migration modal
Browse files Browse the repository at this point in the history
  • Loading branch information
twocanoes committed Nov 27, 2023
1 parent f418394 commit 59ab7e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Profile Manifest/com.twocanoes.xcreds.plist
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ Note that Google does not support the offline_access scope so instead use the pr
<key>pfm_default</key>
<false/>
<key>pfm_description</key>
<string>Prompt for local account username and password if no account was mapped</string>
<string>Prompt for local account username and password if no account was mapped and there are standard users already on the system.</string>
<key>pfm_documentation_url</key>
<string>https://twocanoes.com/knowledge-base/xcreds-admin-guide/#shouldPromptForMigration</string>
<key>pfm_name</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ class VerifyLocalCredentialsWindowController: NSWindowController, NSWindowDelega
var username:String?
var password:String?
var shouldCreateNewAccount:Bool?=false

var shouldShowCreateNewAccountButton:Bool?=true
override func windowDidLoad() {
super.windowDidLoad()

}
func windowDidBecomeKey(_ notification: Notification) {
if let shouldCreateNewAccount = shouldCreateNewAccount{
createNewAccountButton.isHidden = !shouldCreateNewAccount
if let shouldShowCreateNewAccountButton = shouldShowCreateNewAccountButton{
createNewAccountButton.isHidden = !shouldShowCreateNewAccountButton
}
}

Expand Down
Binary file not shown.

0 comments on commit 59ab7e8

Please sign in to comment.