mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
style: 格式化
[skip changelog]
This commit is contained in:
@@ -78,7 +78,7 @@ public static class ConfigFactory
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.Information("Failed to parse configuration file: " + e);
|
||||
_logger.Information(e, "Failed to parse configuration file.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ public static class ConfigFactory
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.Information("Failed to parse configuration file: " + e);
|
||||
_logger.Information(e, "Failed to parse configuration file.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ public static class ConfigFactory
|
||||
{
|
||||
foreach (var value in args.NewItems)
|
||||
{
|
||||
SpecificConfigBind(args.NewItem.Key, args.NewItem.Value);
|
||||
SpecificConfigBind(value.Key, value.Value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,13 @@ public class Root : INotifyPropertyChanged
|
||||
public string Current { get; set; } = "Default";
|
||||
|
||||
[JsonInclude]
|
||||
public VersionUpdate VersionUpdate { get; private set; } = new VersionUpdate();
|
||||
public VersionUpdate VersionUpdate { get; private set; } = new();
|
||||
|
||||
[JsonInclude]
|
||||
public AnnouncementInfo AnnouncementInfo { get; private set; } = new AnnouncementInfo();
|
||||
public AnnouncementInfo AnnouncementInfo { get; private set; } = new();
|
||||
|
||||
[JsonInclude]
|
||||
public GUI GUI { get; private set; } = new GUI();
|
||||
public GUI GUI { get; private set; } = new();
|
||||
|
||||
[JsonIgnore]
|
||||
public SpecificConfig CurrentConfig
|
||||
|
||||
Reference in New Issue
Block a user