浏览代码

Dashboards now refresh the dashboard name when updated from the settings.

Kenric Nugteren 6 月之前
父节点
当前提交
a5e53699e4
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      prs.desktop/Dashboards/CustomDashboard.xaml.cs
  2. 1 0
      prs.desktop/Dashboards/UtilityDashboard.xaml.cs

+ 1 - 0
prs.desktop/Dashboards/CustomDashboard.xaml.cs

@@ -74,6 +74,7 @@ public partial class CustomDashboardWidget : UserControl, IDashboardWidget<Custo
             return;
         }
 
+        DataPresenter.IsPreview = false;
         DataPresenter.DataComponent = DataComponent;
         var control = DataPresenter.Setup();
 

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

@@ -636,6 +636,7 @@ namespace PRSDesktop
             {
                 grid.ClearElementTypesAndActions();
                 AddCustomDashboardsToGrid(grid, customDashboards);
+                grid.Refresh();
             }
         }
         private void AddCustomDashboardsToGrid(DynamicFormDesignGrid grid, List<CustomDashboard> customDashboards)