mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-22 05:40:43 +08:00
code_review: PR #1489
- Remove unnecessary `CallUIThread` in `ViewModels.Clone` - Code style Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user