optimize<Histories>: only test LFS filter at window start up.

This commit is contained in:
leo 2021-06-08 17:26:01 +08:00
parent d5c744165f
commit 64ae26c170

View file

@ -16,7 +16,7 @@ namespace SourceGit.Views {
public Histories(string repo, string file) {
this.repo = repo;
this.file = file;
this.isLFSEnabled = new Commands.LFS(repo).IsEnabled();
this.isLFSEnabled = new Commands.LFS(repo).IsFiltered(file);
InitializeComponent();