mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
enhance: refresh braches immediately after a branch has been added/deleted
This commit is contained in:
parent
7bfb684bde
commit
0b6cab41cf
2 changed files with 10 additions and 2 deletions
|
@ -129,7 +129,11 @@ namespace SourceGit.ViewModels
|
||||||
Commands.Branch.Create(_repo.FullPath, _name, _baseOnRevision);
|
Commands.Branch.Create(_repo.FullPath, _name, _baseOnRevision);
|
||||||
}
|
}
|
||||||
|
|
||||||
CallUIThread(() => _repo.SetWatcherEnabled(true));
|
CallUIThread(() =>
|
||||||
|
{
|
||||||
|
_repo.MarkBranchesDirtyManually();
|
||||||
|
_repo.SetWatcherEnabled(true);
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,11 @@ namespace SourceGit.ViewModels
|
||||||
Commands.Branch.DeleteRemote(_repo.FullPath, Target.Remote, Target.Name);
|
Commands.Branch.DeleteRemote(_repo.FullPath, Target.Remote, Target.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
CallUIThread(() => _repo.SetWatcherEnabled(true));
|
CallUIThread(() =>
|
||||||
|
{
|
||||||
|
_repo.MarkBranchesDirtyManually();
|
||||||
|
_repo.SetWatcherEnabled(true);
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue