Browse Source

Fixed a dashboard doulbe refresh issue

Kenric Nugteren 2 năm trước cách đây
mục cha
commit
003ece8430
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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;