chore: fix warning

This commit is contained in:
soundofautmn
2026-02-02 20:28:48 +08:00
committed by SherkeyXD
parent 3d46fc1d0c
commit cffa84fb80
3 changed files with 8 additions and 2 deletions

View File

@@ -60,8 +60,9 @@ public class ConfigConverter
{
ret &= ConvertTaskQueue();
}
else if (configurations != null) // 保证 configurations 可用
else if (configurations != null)
{
// 保证 configurations 可用
if (parsedOld["Configurations"] is JObject oldConfigurations)
{
// 删除多余配置

View File

@@ -117,6 +117,7 @@ public class CopilotModel : CopilotBase
return string.Empty;
}
string[] moduleName = [string.Empty, "χ", "γ", "α", "Δ"];
// var moduleLevel = req.ModuleLevel > 0 ? $" [Lv.{req.ModuleLevel}]" : string.Empty;
// 模组编号 -1: 不切换模组 / 无要求, 0: 不使用模组, 1: 模组χ, 2: 模组γ, 3: 模组α, 4: 模组Δ

View File

@@ -501,12 +501,16 @@ public class SettingsViewModel : Screen
public ObservableCollection<CombinedData> ConfigurationList { get; set; } = [];
private string? _currentConfiguration = ConfigurationHelper.GetCurrentConfiguration();
private string _currentConfiguration = ConfigurationHelper.GetCurrentConfiguration();
public string? CurrentConfiguration
{
get => _currentConfiguration;
set {
if (value == null)
{
return;
}
bool ret = ConfigurationHelper.SwitchConfiguration(value);
ret &= ConfigFactory.SwitchConfig(value);