@@ -309,7 +309,7 @@ public bool TryLoadSourceFile(string filePath, out EditorElement outEditor, bool
309309 }
310310 }
311311
312- AddEditorElement ( finalPath , fileInfo . Name , SelectMe , out outEditor ) ;
312+ AddEditorElement ( fileInfo , fileInfo . Name , SelectMe , out outEditor ) ;
313313 if ( TryOpenIncludes && Program . OptionsObject . Program_OpenCustomIncludes )
314314 {
315315 using var textReader = fileInfo . OpenText ( ) ;
@@ -374,17 +374,17 @@ public bool TryLoadSourceFile(string filePath, out EditorElement outEditor, bool
374374 /// Adds a new editor element associated with the file to the Docking Manager.
375375 /// </summary>
376376 /// <param name="filePath">The path of the file</param>
377- /// <param name="name ">The title of the tab</param>
377+ /// <param name="editorTitle ">The title of the tab</param>
378378 /// <param name="SelectMe">Whether to focus this editor element once created.</param>
379- private void AddEditorElement ( string filePath , string name , bool SelectMe , out EditorElement editor )
379+ private void AddEditorElement ( FileInfo fInfo , string editorTitle , bool SelectMe , out EditorElement editor )
380380 {
381- var layoutDocument = new LayoutDocument { Title = name } ;
382- layoutDocument . ToolTip = filePath ;
383- editor = new EditorElement ( filePath ) { Parent = layoutDocument } ;
381+ var layoutDocument = new LayoutDocument { Title = editorTitle } ;
382+ layoutDocument . ToolTip = fInfo . FullName ;
383+ editor = new EditorElement ( fInfo . FullName ) { Parent = layoutDocument } ;
384384 layoutDocument . Content = editor ;
385385 EditorsReferences . Add ( editor ) ;
386386 DockingPane . Children . Add ( layoutDocument ) ;
387- AddNewRecentFile ( filePath ) ;
387+ AddNewRecentFile ( fInfo ) ;
388388 if ( SelectMe )
389389 {
390390 layoutDocument . IsSelected = true ;
@@ -403,7 +403,7 @@ private void AddDASMElement(FileInfo fileInfo)
403403 layoutDocument . Content = dasmElement ;
404404 DockingPane . Children . Add ( layoutDocument ) ;
405405 DockingPane . SelectedContentIndex = DockingPane . ChildrenCount - 1 ;
406- AddNewRecentFile ( fileInfo . FullName ) ;
406+ AddNewRecentFile ( fileInfo ) ;
407407 }
408408
409409 /// <summary>
0 commit comments