Move ShowInTaskbar and RunningCoreType to AppManager

This commit is contained in:
2dust
2025-12-24 16:01:28 +08:00
parent 5478c90180
commit 027252e687
15 changed files with 35 additions and 34 deletions
+1 -1
View File
@@ -1273,7 +1273,7 @@ public static class ConfigHandler
}
else if (node.ConfigType == EConfigType.Custom && node.PreSocksPort > 0)
{
var preCoreType = config.RunningCoreType = config.TunModeItem.EnableTun ? ECoreType.sing_box : ECoreType.Xray;
var preCoreType = AppManager.Instance.RunningCoreType = config.TunModeItem.EnableTun ? ECoreType.sing_box : ECoreType.Xray;
itemSocks = new ProfileItem()
{
CoreType = preCoreType,