Skip to content

Commit 3a1827e

Browse files
committed
code_review: PR #1489
- Remove unnecessary `CallUIThread` in `ViewModels.Clone` - Code style Signed-off-by: leo <[email protected]>
1 parent 25afcba commit 3a1827e

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/ViewModels/Clone.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,7 @@ public override Task<bool> Sure()
128128

129129
if (!Directory.Exists(path))
130130
{
131-
CallUIThread(() =>
132-
{
133-
App.RaiseException(_pageId, $"Folder '{path}' can NOT be found");
134-
});
131+
App.RaiseException(_pageId, $"Folder '{path}' can NOT be found");
135132
return false;
136133
}
137134

src/ViewModels/Repository.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,13 +1587,9 @@ public ContextMenu CreateContextMenuForGitFlow()
15871587
init.Click += (_, e) =>
15881588
{
15891589
if (_currentBranch == null)
1590-
{
15911590
App.RaiseException(_fullpath, "Git flow init failed: No branch found!!!");
1592-
}
15931591
else if (CanCreatePopup())
1594-
{
15951592
ShowPopup(new InitGitFlow(this));
1596-
}
15971593

15981594
e.Handled = true;
15991595
};

0 commit comments

Comments
 (0)