Ver Fonte

Fixed a dashboard doulbe refresh issue

Kenric Nugteren há 2 anos atrás
pai
commit
003ece8430
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      prs.desktop/Dashboards/UtilityDashboard.xaml.cs

+ 4 - 1
prs.desktop/Dashboards/UtilityDashboard.xaml.cs

@@ -431,8 +431,11 @@ namespace PRSDesktop
                 var name = (tab.Header as string)!;
                 if (tab!.Content == null)
                     tab.Content = CreateDashboard(name, _settings.Dashboards[name]);
+                else
+                {
+                    RefreshDashboard(name);
+                }
 
-                RefreshDashboard(name);
                 if (IsReady)
                 {
                     _settings.Selected = tab.TabIndex;