mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
perf: 迁移前清空 gui.new 中的所有配置
This commit is contained in:
@@ -115,6 +115,10 @@ public class ConfigConverter
|
||||
ConfigurationKeys.VersionUpdateDoNotShowUpdate, ConfigurationKeys.CustomInfrastEnabled, ConfigurationKeys.CustomInfrastPlanShowInFightSettings,
|
||||
];
|
||||
|
||||
foreach (var name in ConfigFactory.ConfigList.ToList())
|
||||
{
|
||||
ConfigFactory.DeleteConfiguration(name);
|
||||
}
|
||||
var currentConfigName = ConfigurationHelper.GetCurrentConfiguration();
|
||||
foreach (var configName in ConfigurationHelper.GetConfigurationList())
|
||||
{
|
||||
@@ -530,14 +534,6 @@ public class ConfigConverter
|
||||
}
|
||||
}
|
||||
|
||||
var oldConfigList = ConfigurationHelper.GetConfigurationList();
|
||||
foreach (var name in ConfigFactory.ConfigList.ToList())
|
||||
{
|
||||
if (!oldConfigList.Contains(name))
|
||||
{
|
||||
ConfigFactory.DeleteConfiguration(name);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user