fix: 更新未切换基建模式会导致变回常规模式

This commit is contained in:
uye
2025-05-01 22:43:22 +08:00
parent 2e8f0909d9
commit 39cd7efad8

View File

@@ -229,6 +229,7 @@ public class InfrastSettingsUserControlModel : TaskViewModel
ConfigurationHelper.DeleteValue(ConfigurationKeys.CustomInfrastEnabled, out string outStr) &&
bool.TryParse(outStr, out bool enable) && enable)
{
ConfigurationHelper.SetValue(ConfigurationKeys.InfrastMode, Mode.Custom.ToString());
return Mode.Custom;
}