@@ -857,10 +857,17 @@ private Task<DialogResult> GetFileInUseDialog(IEnumerable<string> source, IEnume
857857 ? Strings . FileInUseDialog_Text . GetLocalizedResource ( )
858858 : string . Format ( Strings . FileInUseByDialog_Text . GetLocalizedResource ( ) , string . Join ( ", " , lockingProcess . Select ( x => $ "{ x . AppName ?? x . Name } (PID: { x . Pid } )") ) ) ;
859859
860- return GetFileListDialog ( source , titleText , subtitleText , Strings . Retry . GetLocalizedResource ( ) , Strings . Cancel . GetLocalizedResource ( ) ) ;
860+ var sourceCount = source . Count ( ) ;
861+
862+ return GetFileListDialog (
863+ source ,
864+ titleText ,
865+ subtitleText ,
866+ Strings . Retry . GetLocalizedResource ( ) ,
867+ sourceCount > 1 ? Strings . Skip . GetLocalizedResource ( ) : Strings . Cancel . GetLocalizedResource ( ) ) ;
861868 }
862869
863- private async Task < DialogResult > GetFileListDialog ( IEnumerable < string > source , string titleText , string descriptionText = null , string primaryButtonText = null , string secondaryButtonText = null )
870+ private async Task < DialogResult > GetFileListDialog ( IEnumerable < string > source , string titleText , string descriptionText = null , string primaryButtonText = null , string secondaryButtonText = null , string closeButtonText = null )
864871 {
865872 var incomingItems = new List < BaseFileSystemDialogItemViewModel > ( ) ;
866873 List < ShellFileItem > binItems = null ;
@@ -886,7 +893,7 @@ private async Task<DialogResult> GetFileListDialog(IEnumerable<string> source, s
886893 }
887894
888895 var dialogViewModel = FileSystemDialogViewModel . GetDialogViewModel (
889- incomingItems , titleText , descriptionText , primaryButtonText , secondaryButtonText ) ;
896+ incomingItems , titleText , descriptionText , primaryButtonText , secondaryButtonText , closeButtonText ) ;
890897
891898 var dialogService = Ioc . Default . GetRequiredService < IDialogService > ( ) ;
892899
0 commit comments