refactor: change the way to refresh repository's data.

* mark dirty instead of calling refresh method directly
* force mark branches data dirty after remotes changed
This commit is contained in:
leo 2024-03-08 09:57:29 +08:00
parent 3eb8a82005
commit a89760c7a5
6 changed files with 33 additions and 17 deletions

View file

@ -53,8 +53,12 @@ namespace SourceGit.Models {
}
}
public void MarkWorkingCopyRefreshed() {
_updateWC = 0;
public void MarkBranchDirtyManually() {
_updateBranch = DateTime.Now.ToFileTime() - 1;
}
public void MarkWorkingCopyDirtyManually() {
_updateWC = DateTime.Now.ToFileTime() - 1;
}
public void Dispose() {