@@ -425,17 +425,17 @@ public ContextMenu CreateChangeContextMenu(Models.Change change)
425
425
ev . Handled = true ;
426
426
} ;
427
427
428
- var copyFileName = new MenuItem ( ) ;
429
- copyFileName . Header = App . Text ( "CopyFileName " ) ;
430
- copyFileName . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
431
- copyFileName . Click += ( _ , e ) =>
428
+ var copyFullPath = new MenuItem ( ) ;
429
+ copyFullPath . Header = App . Text ( "CopyFullPath " ) ;
430
+ copyFullPath . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
431
+ copyFullPath . Click += ( _ , e ) =>
432
432
{
433
- App . CopyText ( Path . GetFileName ( change . Path ) ) ;
433
+ App . CopyText ( Native . OS . GetAbsPath ( _repo . FullPath , change . Path ) ) ;
434
434
e . Handled = true ;
435
435
} ;
436
436
437
437
menu . Items . Add ( copyPath ) ;
438
- menu . Items . Add ( copyFileName ) ;
438
+ menu . Items . Add ( copyFullPath ) ;
439
439
return menu ;
440
440
}
441
441
@@ -562,17 +562,17 @@ public ContextMenu CreateRevisionFileContextMenu(Models.Object file)
562
562
ev . Handled = true ;
563
563
} ;
564
564
565
- var copyFileName = new MenuItem ( ) ;
566
- copyFileName . Header = App . Text ( "CopyFileName " ) ;
567
- copyFileName . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
568
- copyFileName . Click += ( _ , e ) =>
565
+ var copyFullPath = new MenuItem ( ) ;
566
+ copyFullPath . Header = App . Text ( "CopyFullPath " ) ;
567
+ copyFullPath . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
568
+ copyFullPath . Click += ( _ , e ) =>
569
569
{
570
- App . CopyText ( Path . GetFileName ( file . Path ) ) ;
570
+ App . CopyText ( Native . OS . GetAbsPath ( _repo . FullPath , file . Path ) ) ;
571
571
e . Handled = true ;
572
572
} ;
573
573
574
574
menu . Items . Add ( copyPath ) ;
575
- menu . Items . Add ( copyFileName ) ;
575
+ menu . Items . Add ( copyFullPath ) ;
576
576
return menu ;
577
577
}
578
578
0 commit comments