mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
chore: 在 ui 线程清除日志
This commit is contained in:
@@ -157,7 +157,7 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
/// </summary>
|
||||
private void ClearLog()
|
||||
{
|
||||
LogItemViewModels.Clear();
|
||||
Execute.OnUIThread(() => LogItemViewModels.Clear());
|
||||
}
|
||||
|
||||
private string _filename = string.Empty;
|
||||
|
||||
@@ -802,9 +802,12 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
/// </summary>
|
||||
private void ClearLog()
|
||||
{
|
||||
Execute.OnUIThread(() =>
|
||||
{
|
||||
LogItemViewModels.Clear();
|
||||
_logger.Information("Main windows log clear.");
|
||||
_logger.Information(string.Empty);
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user