@@ -211,7 +211,6 @@ internal void Open(FileSystemEntry? entry1, FileSystemEntry? entry2)
211211 {
212212 var finalInfoRendered = new StringBuilder ( ) ;
213213 finalInfoRendered . AppendLine ( Translate . DoTranslation ( "Can't open file or folder" ) + TextTools . FormatString ( ": {0}" , ex . Message ) ) ;
214- finalInfoRendered . AppendLine ( "\n " + Translate . DoTranslation ( "Press any key to close this window." ) ) ;
215214 InfoBoxModalColor . WriteInfoBoxModalColorBack ( finalInfoRendered . ToString ( ) , Settings . BoxForegroundColor , Settings . BoxBackgroundColor ) ;
216215 }
217216 }
@@ -303,7 +302,6 @@ internal void PrintFileSystemEntry(FileSystemEntry? entry1, FileSystemEntry? ent
303302 finalInfoRendered . AppendLine ( handler . InfoHandler ( fullPath ) ) ;
304303 }
305304 }
306- finalInfoRendered . AppendLine ( "\n " + Translate . DoTranslation ( "Press any key to close this window." ) ) ;
307305
308306 // Now, render the info box
309307 InfoBoxModalColor . WriteInfoBoxModalColorBack ( finalInfoRendered . ToString ( ) , Settings . BoxForegroundColor , Settings . BoxBackgroundColor ) ;
@@ -312,7 +310,6 @@ internal void PrintFileSystemEntry(FileSystemEntry? entry1, FileSystemEntry? ent
312310 {
313311 var finalInfoRendered = new StringBuilder ( ) ;
314312 finalInfoRendered . AppendLine ( Translate . DoTranslation ( "Can't get file system info" ) + TextTools . FormatString ( ": {0}" , ex . Message ) ) ;
315- finalInfoRendered . AppendLine ( "\n " + Translate . DoTranslation ( "Press any key to close this window." ) ) ;
316313 InfoBoxModalColor . WriteInfoBoxModalColorBack ( finalInfoRendered . ToString ( ) , Settings . BoxForegroundColor , Settings . BoxBackgroundColor ) ;
317314 }
318315 }
@@ -342,7 +339,6 @@ internal void CopyFileOrDir(FileSystemEntry? entry1, FileSystemEntry? entry2)
342339 {
343340 var finalInfoRendered = new StringBuilder ( ) ;
344341 finalInfoRendered . AppendLine ( Translate . DoTranslation ( "Can't copy file or directory" ) + TextTools . FormatString ( ": {0}" , ex . Message ) ) ;
345- finalInfoRendered . AppendLine ( "\n " + Translate . DoTranslation ( "Press any key to close this window." ) ) ;
346342 InfoBoxModalColor . WriteInfoBoxModalColorBack ( finalInfoRendered . ToString ( ) , Settings . BoxForegroundColor , Settings . BoxBackgroundColor ) ;
347343 }
348344 }
@@ -370,7 +366,6 @@ internal void MoveFileOrDir(FileSystemEntry? entry1, FileSystemEntry? entry2)
370366 {
371367 var finalInfoRendered = new StringBuilder ( ) ;
372368 finalInfoRendered . AppendLine ( Translate . DoTranslation ( "Can't move file or directory" ) + TextTools . FormatString ( ": {0}" , ex . Message ) ) ;
373- finalInfoRendered . AppendLine ( "\n " + Translate . DoTranslation ( "Press any key to close this window." ) ) ;
374369 InfoBoxModalColor . WriteInfoBoxModalColorBack ( finalInfoRendered . ToString ( ) , Settings . BoxForegroundColor , Settings . BoxBackgroundColor ) ;
375370 }
376371 }
@@ -396,7 +391,6 @@ internal void RemoveFileOrDir(FileSystemEntry? entry1, FileSystemEntry? entry2)
396391 {
397392 var finalInfoRendered = new StringBuilder ( ) ;
398393 finalInfoRendered . AppendLine ( Translate . DoTranslation ( "Can't remove file or directory" ) + TextTools . FormatString ( ": {0}" , ex . Message ) ) ;
399- finalInfoRendered . AppendLine ( "\n " + Translate . DoTranslation ( "Press any key to close this window." ) ) ;
400394 InfoBoxModalColor . WriteInfoBoxModalColorBack ( finalInfoRendered . ToString ( ) , Settings . BoxForegroundColor , Settings . BoxBackgroundColor ) ;
401395 }
402396 }
@@ -461,7 +455,6 @@ internal void CopyTo(FileSystemEntry? entry1, FileSystemEntry? entry2)
461455 {
462456 var finalInfoRendered = new StringBuilder ( ) ;
463457 finalInfoRendered . AppendLine ( Translate . DoTranslation ( "Can't copy file or directory" ) + TextTools . FormatString ( ": {0}" , ex . Message ) ) ;
464- finalInfoRendered . AppendLine ( "\n " + Translate . DoTranslation ( "Press any key to close this window." ) ) ;
465458 InfoBoxModalColor . WriteInfoBoxModalColorBack ( finalInfoRendered . ToString ( ) , Settings . BoxForegroundColor , Settings . BoxBackgroundColor ) ;
466459 }
467460 }
@@ -499,7 +492,6 @@ internal void MoveTo(FileSystemEntry? entry1, FileSystemEntry? entry2)
499492 {
500493 var finalInfoRendered = new StringBuilder ( ) ;
501494 finalInfoRendered . AppendLine ( Translate . DoTranslation ( "Can't move file or directory" ) + TextTools . FormatString ( ": {0}" , ex . Message ) ) ;
502- finalInfoRendered . AppendLine ( "\n " + Translate . DoTranslation ( "Press any key to close this window." ) ) ;
503495 InfoBoxModalColor . WriteInfoBoxModalColorBack ( finalInfoRendered . ToString ( ) , Settings . BoxForegroundColor , Settings . BoxBackgroundColor ) ;
504496 }
505497 }
@@ -537,7 +529,6 @@ internal void Rename(FileSystemEntry? entry1, FileSystemEntry? entry2)
537529 {
538530 var finalInfoRendered = new StringBuilder ( ) ;
539531 finalInfoRendered . AppendLine ( Translate . DoTranslation ( "Can't move file or directory" ) + TextTools . FormatString ( ": {0}" , ex . Message ) ) ;
540- finalInfoRendered . AppendLine ( "\n " + Translate . DoTranslation ( "Press any key to close this window." ) ) ;
541532 InfoBoxModalColor . WriteInfoBoxModalColorBack ( finalInfoRendered . ToString ( ) , Settings . BoxForegroundColor , Settings . BoxBackgroundColor ) ;
542533 }
543534 }
0 commit comments