mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +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
|
@ -68,9 +68,9 @@ namespace SourceGit.ViewModels {
|
|||
|
||||
public override Task<bool> Sure() {
|
||||
_repo.SetWatcherEnabled(false);
|
||||
return Task.Run(() => {
|
||||
SetProgressDescription($"Editing remote '{_remote.Name}' ...");
|
||||
ProgressDescription = $"Editing remote '{_remote.Name}' ...";
|
||||
|
||||
return Task.Run(() => {
|
||||
if (_remote.Name != _name) {
|
||||
var succ = new Commands.Remote(_repo.FullPath).Rename(_remote.Name, _name);
|
||||
if (succ) _remote.Name = _name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue