浏览代码

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;