修改MFC5未安装拉取参数报错问题

This commit is contained in:
HCL 2026-08-19 08:49:33 +08:00
parent 8b8246bec0
commit 3902b5db43

View File

@ -1157,7 +1157,12 @@ namespace SicUI.Models.PMs
private void GetSC()
{
Mfc5IsInstalled = (bool)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.MFC.Mfc5.IsInstalled");
var mfc5IsInstalled = QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.MFC.Mfc5.IsInstalled");
if (mfc5IsInstalled != null)
{
Mfc5IsInstalled = (bool)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.MFC.Mfc5.IsInstalled");
}
TMAEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.TMAEnable");
CarbonSource = (string)QueryDataClient.Instance.Service.GetConfig($"PM.{Module}.CarbonSource");