Skip to content

Commit 7c84e9a

Browse files
committed
PortScanner - Bugs fixed in dialog
1 parent 14b6978 commit 7c84e9a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Source/NETworkManager/ViewModels/Dialogs/PortScannerProfileViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public PortScannerProfileViewModel(Action<PortScannerProfileViewModel> saveComma
138138

139139
private void HasProfileInfoChanged()
140140
{
141-
ProfileInfoChanged = (_profileInfo.Name != Name) || (_profileInfo.HostnameOrIPAddress != HostnameOrIPAddress) || (_profileInfo.Ports == Ports) || (_profileInfo.Group != Group);
141+
ProfileInfoChanged = (_profileInfo.Name != Name) || (_profileInfo.HostnameOrIPAddress != HostnameOrIPAddress) || (_profileInfo.Ports != Ports) || (_profileInfo.Group != Group);
142142
}
143143
}
144144
}

Source/NETworkManager/Views/Dialogs/PortScannerProfileDialog.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</TextBox.Text>
3636
</TextBox>
3737
<TextBlock Grid.Column="0" Grid.Row="2" DataContext="{DynamicResource String_Destination}" Text="{Binding Path=., StringFormat={}{0}:}" />
38-
<TextBox x:Name="txtHostnameOrIPAddress" Grid.Column="1" Grid.Row="2" Text="{Binding HostnameOrIPAddress}" />
38+
<TextBox x:Name="txtHostnameOrIPAddress" Grid.Column="1" Grid.Row="2" Text="{Binding HostnameOrIPAddress, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
3939
<TextBlock Grid.Column="0" Grid.Row="4" DataContext="{DynamicResource String_Ports}" Text="{Binding Path=., StringFormat={}{0}:}" />
4040
<TextBox x:Name="txtPorts" Grid.Column="1" Grid.Row="4">
4141
<TextBox.Text>

0 commit comments

Comments
 (0)