Guard defaults properties
This commit is contained in:
@@ -686,7 +686,9 @@ if ($loadedDefaults) {
|
||||
if ($loadedDefaults.DnsServer) { $dnsServerBox.Text = $loadedDefaults.DnsServer }
|
||||
if ($loadedDefaults.ReplicationTargets) { $replicationTargetsBox.Text = $loadedDefaults.ReplicationTargets }
|
||||
if ($loadedDefaults.ReplicationCommand) { $replicationCmdBox.Text = $loadedDefaults.ReplicationCommand }
|
||||
if ($null -ne $loadedDefaults.ReplicationEnabled) { $replicationEnabledBox.Checked = [bool]$loadedDefaults.ReplicationEnabled }
|
||||
if ($loadedDefaults.PSObject.Properties["ReplicationEnabled"]) {
|
||||
$replicationEnabledBox.Checked = [bool]$loadedDefaults.ReplicationEnabled
|
||||
}
|
||||
if ($loadedDefaults.WacsPath) { $wacsPathBox.Text = $loadedDefaults.WacsPath }
|
||||
if ($loadedDefaults.OutputPath) { $outputPathBox.Text = $loadedDefaults.OutputPath }
|
||||
if ($loadedDefaults.PfxPassword) { $pfxPasswordBox.Text = $loadedDefaults.PfxPassword }
|
||||
|
||||
Reference in New Issue
Block a user