code_review: PR #795

* update zh_CN and zh_TW translations
* simplify calling `Welcome.Clone`
This commit is contained in:
leo 2024-12-09 16:44:16 +08:00
parent 3990cc9452
commit ee3942fec6
No known key found for this signature in database
3 changed files with 4 additions and 8 deletions

View file

@ -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;
}