File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 746
746
<x : String x : Key =" Text.Submodule.CopyPath" xml : space =" preserve" >Copy Relative Path</x : String >
747
747
<x : String x : Key =" Text.Submodule.Deinit" xml : space =" preserve" >De-initialize</x : String >
748
748
<x : String x : Key =" Text.Submodule.FetchNested" xml : space =" preserve" >Fetch nested submodules</x : String >
749
+ <x : String x : Key =" Text.Submodule.Histories" xml : space =" preserve" >Histories</x : String >
749
750
<x : String x : Key =" Text.Submodule.Move" xml : space =" preserve" >Move To</x : String >
750
751
<x : String x : Key =" Text.Submodule.Open" xml : space =" preserve" >Open Repository</x : String >
751
752
<x : String x : Key =" Text.Submodule.RelativePath" xml : space =" preserve" >Relative Path:</x : String >
Original file line number Diff line number Diff line change 750
750
<x : String x : Key =" Text.Submodule.CopyPath" xml : space =" preserve" >复制路径</x : String >
751
751
<x : String x : Key =" Text.Submodule.Deinit" xml : space =" preserve" >取消初始化</x : String >
752
752
<x : String x : Key =" Text.Submodule.FetchNested" xml : space =" preserve" >拉取子孙模块</x : String >
753
+ <x : String x : Key =" Text.Submodule.Histories" xml : space =" preserve" >变更历史</x : String >
753
754
<x : String x : Key =" Text.Submodule.Move" xml : space =" preserve" >移动</x : String >
754
755
<x : String x : Key =" Text.Submodule.Open" xml : space =" preserve" >打开仓库</x : String >
755
756
<x : String x : Key =" Text.Submodule.RelativePath" xml : space =" preserve" >相对仓库路径 :</x : String >
Original file line number Diff line number Diff line change 750
750
<x : String x : Key =" Text.Submodule.CopyPath" xml : space =" preserve" >複製路徑</x : String >
751
751
<x : String x : Key =" Text.Submodule.Deinit" xml : space =" preserve" >取消初始化</x : String >
752
752
<x : String x : Key =" Text.Submodule.FetchNested" xml : space =" preserve" >提取子模組</x : String >
753
+ <x : String x : Key =" Text.Submodule.Histories" xml : space =" preserve" >變更歷史</x : String >
753
754
<x : String x : Key =" Text.Submodule.Move" xml : space =" preserve" >移動</x : String >
754
755
<x : String x : Key =" Text.Submodule.Open" xml : space =" preserve" >開啟存放庫</x : String >
755
756
<x : String x : Key =" Text.Submodule.RelativePath" xml : space =" preserve" >相對存放庫路徑:</x : String >
Original file line number Diff line number Diff line change @@ -2607,6 +2607,15 @@ public ContextMenu CreateContextMenuForSubmodule(Models.Submodule submodule)
2607
2607
ev . Handled = true ;
2608
2608
} ;
2609
2609
2610
+ var histories = new MenuItem ( ) ;
2611
+ histories . Header = App . Text ( "Submodule.Histories" ) ;
2612
+ histories . Icon = App . CreateMenuIcon ( "Icons.Histories" ) ;
2613
+ histories . Click += ( _ , ev ) =>
2614
+ {
2615
+ App . ShowWindow ( new FileHistories ( this , submodule . Path ) ) ;
2616
+ ev . Handled = true ;
2617
+ } ;
2618
+
2610
2619
var copy = new MenuItem ( ) ;
2611
2620
copy . Header = App . Text ( "Submodule.CopyPath" ) ;
2612
2621
copy . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
@@ -2625,6 +2634,8 @@ public ContextMenu CreateContextMenuForSubmodule(Models.Submodule submodule)
2625
2634
menu . Items . Add ( deinit ) ;
2626
2635
menu . Items . Add ( rm ) ;
2627
2636
menu . Items . Add ( new MenuItem ( ) { Header = "-" } ) ;
2637
+ menu . Items . Add ( histories ) ;
2638
+ menu . Items . Add ( new MenuItem ( ) { Header = "-" } ) ;
2628
2639
menu . Items . Add ( copy ) ;
2629
2640
return menu ;
2630
2641
}
You can’t perform that action at this time.
0 commit comments