File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 360
360
<x : String x : Key =" Text.Hotkeys" xml : space =" preserve" >快捷键参考</x : String >
361
361
<x : String x : Key =" Text.Hotkeys.Global" xml : space =" preserve" >全局快捷键</x : String >
362
362
<x : String x : Key =" Text.Hotkeys.Global.CancelPopup" xml : space =" preserve" >取消弹出面板</x : String >
363
+ <x : String x : Key =" Text.Hotkeys.Global.Clone" xml : space =" preserve" >克隆远程仓库</x : String >
363
364
<x : String x : Key =" Text.Hotkeys.Global.CloseTab" xml : space =" preserve" >关闭当前页面</x : String >
364
365
<x : String x : Key =" Text.Hotkeys.Global.GotoPrevTab" xml : space =" preserve" >切换到上一个页面</x : String >
365
366
<x : String x : Key =" Text.Hotkeys.Global.GotoNextTab" xml : space =" preserve" >切换到下一个页面</x : String >
Original file line number Diff line number Diff line change 360
360
<x : String x : Key =" Text.Hotkeys" xml : space =" preserve" >快速鍵參考</x : String >
361
361
<x : String x : Key =" Text.Hotkeys.Global" xml : space =" preserve" >全域快速鍵</x : String >
362
362
<x : String x : Key =" Text.Hotkeys.Global.CancelPopup" xml : space =" preserve" >取消彈出面板</x : String >
363
+ <x : String x : Key =" Text.Hotkeys.Global.Clone" xml : space =" preserve" >複製 (clone) 遠端存放庫</x : String >
363
364
<x : String x : Key =" Text.Hotkeys.Global.CloseTab" xml : space =" preserve" >關閉目前頁面</x : String >
364
365
<x : String x : Key =" Text.Hotkeys.Global.GotoPrevTab" xml : space =" preserve" >切換到上一個頁面</x : String >
365
366
<x : String x : Key =" Text.Hotkeys.Global.GotoNextTab" xml : space =" preserve" >切換到下一個頁面</x : String >
Original file line number Diff line number Diff line change @@ -139,15 +139,9 @@ protected override void OnKeyDown(KeyEventArgs e)
139
139
if ( e . Key == Key . N )
140
140
{
141
141
if ( vm . ActivePage . Data is not ViewModels . Welcome )
142
- {
143
142
vm . AddNewTab ( ) ;
144
- }
145
-
146
- if ( vm . ActivePage . Data is ViewModels . Welcome welcome )
147
- {
148
- welcome . Clone ( ) ;
149
- }
150
-
143
+
144
+ ViewModels . Welcome . Instance . Clone ( ) ;
151
145
e . Handled = true ;
152
146
return ;
153
147
}
You can’t perform that action at this time.
0 commit comments