mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Core - Fixed very fast logging slowly taking up a lot of memory
Data model debug UI - Improved scrolling
This commit is contained in:
parent
1a82903449
commit
d32ac329c8
@ -25,7 +25,7 @@ namespace Artemis.Core
|
||||
internal static void Emit(LogEvent logEvent)
|
||||
{
|
||||
LinkedList.AddLast(logEvent);
|
||||
if (LinkedList.Count > 500)
|
||||
while (LinkedList.Count > 500)
|
||||
LinkedList.RemoveFirst();
|
||||
|
||||
OnEventAdded(new LogEventEventArgs(logEvent));
|
||||
|
||||
@ -69,8 +69,7 @@
|
||||
<TreeView Grid.Row="1"
|
||||
ItemsSource="{Binding MainDataModel.Children}"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
VirtualizingStackPanel.IsVirtualizing="True"
|
||||
VirtualizingStackPanel.VirtualizationMode="Recycling">
|
||||
VirtualizingStackPanel.IsVirtualizing="True">
|
||||
<TreeView.Resources>
|
||||
<Style TargetType="{x:Type TreeViewItem}" BasedOn="{StaticResource MaterialDesignTreeViewItem}">
|
||||
<Setter Property="IsExpanded" Value="{Binding IsVisualizationExpanded, Mode=TwoWay}" />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user