mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
style: 忽略警告,添加缺少的注释
This commit is contained in:
@@ -799,7 +799,9 @@ namespace MaaWpfGui.Main
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable IDE0060 // 删除未使用的参数
|
||||
private void ProcSubTaskCompleted(JObject details)
|
||||
#pragma warning restore IDE0060 // 删除未使用的参数
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1143,9 +1145,11 @@ namespace MaaWpfGui.Main
|
||||
// string p = @"C:\tmp\this path contains spaces, and,commas\target.txt";
|
||||
string args = string.Format("/e, /select, \"{0}\"", filename);
|
||||
|
||||
ProcessStartInfo info = new ProcessStartInfo();
|
||||
info.FileName = "explorer";
|
||||
info.Arguments = args;
|
||||
ProcessStartInfo info = new ProcessStartInfo
|
||||
{
|
||||
FileName = "explorer",
|
||||
Arguments = args,
|
||||
};
|
||||
Process.Start(info);
|
||||
break;
|
||||
}
|
||||
@@ -1827,6 +1831,9 @@ namespace MaaWpfGui.Main
|
||||
/// </summary>
|
||||
AdbLiteEnabled = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether the ADB server process should be killed when the instance is exited.
|
||||
/// </summary>
|
||||
KillAdbOnExit = 5,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,9 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
/// </summary>
|
||||
public class CopilotViewModel : Screen
|
||||
{
|
||||
#pragma warning disable IDE0052 // 删除未读的私有成员
|
||||
private readonly IWindowManager _windowManager;
|
||||
#pragma warning restore IDE0052 // 删除未读的私有成员
|
||||
private readonly IHttpService _httpService;
|
||||
private readonly IContainer _container;
|
||||
|
||||
@@ -87,20 +89,6 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
// LogItemViewModels.Insert(0, new LogItemViewModel(time + content, color, weight));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds log with URL.
|
||||
/// </summary>
|
||||
/// <param name="content">The content.</param>
|
||||
/// <param name="url">The URL.</param>
|
||||
/// <param name="color">The font color.</param>
|
||||
/// <param name="weight">The font weight.</param>
|
||||
public void AddLogWithUrl(string content, string url, string color = UiLogColor.Trace, string weight = "Regular")
|
||||
{
|
||||
LogItemViewModels.Add(new LogItemViewModel(content, color, weight));
|
||||
|
||||
// LogItemViewModels.Insert(0, new LogItemViewModel(time + content, color, weight));
|
||||
}
|
||||
|
||||
private bool _idle = true;
|
||||
|
||||
/// <summary>
|
||||
@@ -607,7 +595,7 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
string jsonParam = JsonConvert.SerializeObject(new
|
||||
{
|
||||
id = CopilotId,
|
||||
rating = rating,
|
||||
rating,
|
||||
});
|
||||
|
||||
var response = await _httpService.PostAsJsonAsync(new Uri(_copilotRatingUrl), jsonParam);
|
||||
|
||||
@@ -46,7 +46,9 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
/// </summary>
|
||||
public class TaskQueueViewModel : Screen
|
||||
{
|
||||
#pragma warning disable IDE0052
|
||||
private readonly IWindowManager _windowManager;
|
||||
#pragma warning restore IDE0052
|
||||
private readonly IContainer _container;
|
||||
|
||||
private static readonly ILogger _logger = Log.ForContext<TaskQueueViewModel>();
|
||||
|
||||
Reference in New Issue
Block a user