fix<Histroies>: remove invalid filters to fix issue #I5RZC9

This commit is contained in:
leo 2022-09-20 16:55:24 +08:00
parent a19f81a708
commit 814637946d
5 changed files with 81 additions and 29 deletions

View file

@ -43,11 +43,6 @@ namespace SourceGit.Views.Popups {
full = $"refs/remotes/{remote}/{branch}";
new Commands.Push(repo, remote, branch).Exec();
}
var exists = Models.Preference.Instance.FindRepository(repo);
if (exists != null && exists.Filters.Contains(full)) {
exists.Filters.Remove(full);
}
finishHandler?.Invoke();
Models.Watcher.SetEnabled(repo, true);