mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
chore: fix warning
This commit is contained in:
@@ -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)
|
||||
{
|
||||
// 删除多余配置
|
||||
|
||||
@@ -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: 模组Δ
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user