diff --git a/src/Views/Widgets/Dashboard.xaml.cs b/src/Views/Widgets/Dashboard.xaml.cs index 1dc0bd70..82f80879 100644 --- a/src/Views/Widgets/Dashboard.xaml.cs +++ b/src/Views/Widgets/Dashboard.xaml.cs @@ -55,13 +55,6 @@ namespace SourceGit.Views.Widgets { InitializeComponent(); InitPages(); - UpdateBraches(); - UpdateWorkingCopy(); - UpdateStashes(); - UpdateTags(); - UpdateSubmodules(); - UpdateSubTrees(); - var watcher = Models.Watcher.Get(repo.Path); watcher.Navigate += NavigateTo; watcher.BranchChanged += UpdateBraches; @@ -79,6 +72,12 @@ namespace SourceGit.Views.Widgets { tagList.ItemsSource = new List(); submoduleList.ItemsSource = new List(); }; + + void FirstShowHandler(object _, DependencyPropertyChangedEventArgs __) { + IsVisibleChanged -= FirstShowHandler; + Refresh(); + } + IsVisibleChanged += FirstShowHandler; } #region POPUP