File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,9 @@ private async Task ApplyAsync()
400400
401401 string msg = Lang . ApplyAsk_Format . Format ( _nic . Name , _nic . Description ) ;
402402
403- if ( EditingIPConfig . HasErrors )
403+ var ipv4Config = EditingIPConfig . IPv4Config ;
404+
405+ if ( ipv4Config . HasErrors )
404406 {
405407 msg = $ "{ msg } \n \n { Lang . ValidationErrorWarning } ";
406408 }
@@ -409,7 +411,7 @@ private async Task ApplyAsync()
409411 msg ,
410412 App . AppName ,
411413 MessageBoxButton . OKCancel ,
412- EditingIPConfig . HasErrors ? MessageBoxImage . Warning : MessageBoxImage . Question ,
414+ ipv4Config . HasErrors ? MessageBoxImage . Warning : MessageBoxImage . Question ,
413415 MessageBoxResult . OK ) ;
414416
415417 if ( result != MessageBoxResult . OK )
@@ -419,8 +421,6 @@ private async Task ApplyAsync()
419421
420422 await BackupAsync ( ) ;
421423
422- var ipv4Config = EditingIPConfig . IPv4Config ;
423-
424424 if ( ipv4Config . IsDhcpEnabled )
425425 {
426426 NetworkManagement . SetIPv4Dhcp ( _nic . Id ) ;
You can’t perform that action at this time.
0 commit comments