mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
code_review: PR #795
* update zh_CN and zh_TW translations * simplify calling `Welcome.Clone`
This commit is contained in:
parent
3990cc9452
commit
ee3942fec6
3 changed files with 4 additions and 8 deletions
|
@ -139,15 +139,9 @@ namespace SourceGit.Views
|
|||
if (e.Key == Key.N)
|
||||
{
|
||||
if (vm.ActivePage.Data is not ViewModels.Welcome)
|
||||
{
|
||||
vm.AddNewTab();
|
||||
}
|
||||
|
||||
if (vm.ActivePage.Data is ViewModels.Welcome welcome)
|
||||
{
|
||||
welcome.Clone();
|
||||
}
|
||||
|
||||
|
||||
ViewModels.Welcome.Instance.Clone();
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue