Data model debugger - Improve performance on large data models

Data model debugger - Fixed list item remaining that should be removed
UI - Added --minimized command line parameter to start Artemis in tray
This commit is contained in:
Robert committed 2021-03-14 10:35:56 +01:00
1 parent a170a9980f
commit a57612adb7
3 files changed
+9 -3

No files matched your search

@@ -116,7 +116,7 @@ namespace Artemis.UI.Shared
index++;
}
ListCount = index + 1;
ListCount = index;
while (ListChildren.Count > ListCount)
ListChildren.RemoveAt(ListChildren.Count - 1);
@@ -66,11 +66,16 @@
</StackPanel>
</Grid>
<TreeView Grid.Row="1" ItemsSource="{Binding MainDataModel.Children}" HorizontalContentAlignment="Stretch">
<TreeView Grid.Row="1"
ItemsSource="{Binding MainDataModel.Children}"
HorizontalContentAlignment="Stretch"
VirtualizingStackPanel.IsVirtualizing="True"
VirtualizingStackPanel.VirtualizationMode="Recycling">
<TreeView.Resources>
<Style TargetType="{x:Type TreeViewItem}" BasedOn="{StaticResource MaterialDesignTreeViewItem}">
<Setter Property="IsExpanded" Value="{Binding IsVisualizationExpanded, Mode=TwoWay}" />
</Style>
<HierarchicalDataTemplate DataType="{x:Type dataModel:DataModelPropertiesViewModel}" ItemsSource="{Binding Children}">
<Grid>
<Grid.ColumnDefinitions>
+2 -1
View File
@@ -49,9 +49,10 @@ namespace Artemis.UI.Screens
windowService.ConfigureMainWindowProvider(this);
messageService.ConfigureNotificationProvider(this);
bool autoRunning = Bootstrapper.StartupArguments.Contains("--autorun");
bool minimized = Bootstrapper.StartupArguments.Contains("--minimized");
bool showOnAutoRun = settingsService.GetSetting("UI.ShowOnStartup", true).Value;
if (autoRunning && !showOnAutoRun)
if (autoRunning && !showOnAutoRun || minimized)
coreService.Initialized += (_, _) => updateService.AutoUpdate();
else
{