@@ -393,7 +393,7 @@ public ProfileFileInfo SelectedProfileFile
393393 {
394394 if ( ! _isProfileFileUpdating )
395395 LoadProfile ( value ) ;
396-
396+
397397 ConfigurationManager . Current . ProfileManagerShowUnlock = value . IsEncrypted && ! value . IsPasswordValid ;
398398 SettingsManager . Current . Profiles_LastSelected = value . Name ;
399399 }
@@ -513,6 +513,27 @@ await this.ShowMessageAsync(Strings.SettingsHaveBeenReset,
513513
514514 await this . ShowChildWindowAsync ( childWindow ) ;
515515 }
516+ else if ( SettingsManager . Current . UpgradeDialog_Show )
517+ {
518+ var childWindow = new UpgradeChildWindow ( ) ;
519+
520+ var viewModel = new UpgradeViewModel ( instance =>
521+ {
522+ childWindow . IsOpen = false ;
523+
524+ SettingsManager . Current . UpgradeDialog_Show = false ;
525+
526+ SettingsManager . Save ( ) ;
527+
528+ Load ( ) ;
529+ } ) ;
530+
531+ childWindow . DataContext = viewModel ;
532+
533+ ConfigurationManager . Current . IsChildWindowOpen = true ;
534+
535+ await this . ShowChildWindowAsync ( childWindow ) ;
536+ }
516537 else
517538 {
518539 Load ( ) ;
@@ -826,11 +847,11 @@ private void OnApplicationViewVisible(ApplicationName name, bool fromSettings =
826847 ContentControlApplication . Content = _sntpLookupHostView ;
827848 break ;
828849 case ApplicationName . HostsFileEditor :
829- if ( _hostsFileEditorView == null )
850+ if ( _hostsFileEditorView == null )
830851 _hostsFileEditorView = new HostsFileEditorView ( ) ;
831852 else
832853 _hostsFileEditorView . OnViewVisible ( ) ;
833-
854+
834855 ContentControlApplication . Content = _hostsFileEditorView ;
835856 break ;
836857 case ApplicationName . DiscoveryProtocol :
@@ -913,7 +934,7 @@ private void OnApplicationViewVisible(ApplicationName name, bool fromSettings =
913934
914935 ContentControlApplication . Content = _arpTableView ;
915936 break ;
916-
937+
917938 default :
918939 Log . Error ( "Cannot show unknown application view: " + name ) ;
919940 break ;
@@ -1387,7 +1408,7 @@ private void LoadProfiles()
13871408 . FirstOrDefault ( x => x . Name == SettingsManager . Current . Profiles_LastSelected ) ;
13881409 SelectedProfileFile ??= ProfileFiles . SourceCollection . Cast < ProfileFileInfo > ( ) . FirstOrDefault ( ) ;
13891410 }
1390-
1411+
13911412 private async void LoadProfile ( ProfileFileInfo info , bool showWrongPassword = false )
13921413 {
13931414 // Disable profile management while switching profiles
0 commit comments