mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
optimize<*>: App.RaiseException should be called in UIThread; add default progress description for popups;
This commit is contained in:
parent
dc0b33ba21
commit
9c3294c285
35 changed files with 100 additions and 34 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using Avalonia.Threading;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SourceGit.Commands {
|
||||
public class GitFlow : Command {
|
||||
|
@ -42,7 +43,9 @@ namespace SourceGit.Commands {
|
|||
Args = $"flow hotfix start {name}";
|
||||
break;
|
||||
default:
|
||||
App.RaiseException(Context, "Bad branch type!!!");
|
||||
Dispatcher.UIThread.Invoke(() => {
|
||||
App.RaiseException(Context, "Bad branch type!!!");
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -62,7 +65,9 @@ namespace SourceGit.Commands {
|
|||
Args = $"flow hotfix finish {option} {name} -m \"HOTFIX_DONE\"";
|
||||
break;
|
||||
default:
|
||||
App.RaiseException(Context, "Bad branch type!!!");
|
||||
Dispatcher.UIThread.Invoke(() => {
|
||||
App.RaiseException(Context, "Bad branch type!!!");
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue