LogWindow: Improve loading time
Some checks failed
Test / Run tests (push) Has been cancelled

This commit is contained in:
2025-08-20 16:32:25 +02:00
parent 07f9a0f522
commit de561d9737
2 changed files with 32 additions and 25 deletions

View File

@@ -561,9 +561,7 @@ namespace Elwig.Helpers {
Log = "Application",
Source = ".NET Runtime",
};
return log.Entries.Cast<EventLogEntry>()
.Where(e => e.Message.StartsWith("Application: Elwig.exe"))
.ToList();
return [.. log.Entries.OfType<EventLogEntry>().Where(e => e.InstanceId == 1026).Where(e => e.Message.StartsWith("Application: Elwig.exe"))];
}
public static int GetEntityIdetifierForPk(params object?[] primaryKey) {