mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
optimize<DiffViewer>: clear all old datas before update contents
This commit is contained in:
parent
c1c57f9b1d
commit
3667a89fb8
1 changed files with 4 additions and 1 deletions
|
@ -60,6 +60,10 @@ namespace SourceGit.Views.Widgets {
|
|||
public void Diff(string repo, Option opt) {
|
||||
seq++;
|
||||
|
||||
foreach (var e in editors) e.ItemsSource = null;
|
||||
foreach (var s in splitters) s.Visibility = Visibility.Hidden;
|
||||
ClearCache();
|
||||
|
||||
mask.Visibility = Visibility.Collapsed;
|
||||
noChange.Visibility = Visibility.Collapsed;
|
||||
sizeChange.Visibility = Visibility.Collapsed;
|
||||
|
@ -68,7 +72,6 @@ namespace SourceGit.Views.Widgets {
|
|||
loading.IsAnimating = true;
|
||||
|
||||
SetTitle(opt.Path, opt.OrgPath);
|
||||
ClearCache();
|
||||
|
||||
this.repo = repo;
|
||||
this.opt = opt;
|
||||
|
|
Loading…
Reference in a new issue