code_review: PR #1489

- Remove unnecessary `CallUIThread` in `ViewModels.Clone`
- Code style

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-07-02 13:16:49 +08:00
parent 25afcba44b
commit 3a1827eb3d
2 changed files with 1 additions and 8 deletions

View File

@@ -128,10 +128,7 @@ namespace SourceGit.ViewModels
if (!Directory.Exists(path))
{
CallUIThread(() =>
{
App.RaiseException(_pageId, $"Folder '{path}' can NOT be found");
});
App.RaiseException(_pageId, $"Folder '{path}' can NOT be found");
return false;
}

View File

@@ -1587,13 +1587,9 @@ namespace SourceGit.ViewModels
init.Click += (_, e) =>
{
if (_currentBranch == null)
{
App.RaiseException(_fullpath, "Git flow init failed: No branch found!!!");
}
else if (CanCreatePopup())
{
ShowPopup(new InitGitFlow(this));
}
e.Handled = true;
};