فهرست منبع

Fixed a dashboard doulbe refresh issue

Kenric Nugteren 2 سال پیش
والد
کامیت
003ece8430
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  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;