From 64ae26c1708f657ce65b496c8b5e118d1c31e8d9 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 8 Jun 2021 17:26:01 +0800 Subject: [PATCH] optimize: only test LFS filter at window start up. --- src/Views/Histories.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Histories.xaml.cs b/src/Views/Histories.xaml.cs index 97986946..6d7e5e5b 100644 --- a/src/Views/Histories.xaml.cs +++ b/src/Views/Histories.xaml.cs @@ -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();