@@ -405,21 +405,21 @@ public static DynamicDialog GetFor_CreateAlternateDataStreamDialog()
405405 return dialog ;
406406 }
407407
408- public static async Task ShowFor_IDEErrorDialog ( )
408+ public static async Task ShowFor_IDEErrorDialog ( string path )
409409 {
410410 var commands = Ioc . Default . GetRequiredService < ICommandManager > ( ) ;
411411 var dialog = new DynamicDialog ( new DynamicDialogViewModel ( )
412412 {
413- TitleText = Strings . IDEError . GetLocalizedResource ( ) ,
414- SubtitleText = Strings . SelectedIDENotValid . GetLocalizedResource ( ) ,
415- PrimaryButtonText = Strings . OK . GetLocalizedResource ( ) ,
416- SecondaryButtonText = Strings . EditInSettings . GetLocalizedResource ( ) ,
413+ TitleText = string . Format ( Strings . IDENotLocatedTitle . GetLocalizedResource ( ) , path ) ,
414+ SubtitleText = Strings . IDENotLocatedContent . GetLocalizedResource ( ) ,
415+ PrimaryButtonText = Strings . OpenSettings . GetLocalizedResource ( ) ,
416+ SecondaryButtonText = Strings . Close . GetLocalizedResource ( ) ,
417417 DynamicButtons = DynamicDialogButtons . Primary | DynamicDialogButtons . Secondary ,
418418 } ) ;
419419
420420 await dialog . TryShowAsync ( ) ;
421421
422- if ( dialog . DynamicResult is DynamicDialogResult . Secondary )
422+ if ( dialog . DynamicResult is DynamicDialogResult . Primary )
423423 await commands . OpenSettings . ExecuteAsync (
424424 new SettingsNavigationParams ( ) { PageKind = SettingsPageKind . DevToolsPage }
425425 ) ;
0 commit comments