Skip to content

Commit

Permalink
Log when calling Diet()
Browse files Browse the repository at this point in the history
  • Loading branch information
sappho192 committed Sep 9, 2024
1 parent bfac820 commit 43a2ef9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ public void ChangeChatFontFamily(string fontFamily)
public void Diet()
{
if (ChatDocument.Blocks.Count < 500) return;
Log.Information("Executing diet");
var blocks = ChatDocument.Blocks.Take(50).ToFrozenSet();
foreach (var item in blocks)
{
Expand Down

0 comments on commit 43a2ef9

Please sign in to comment.