From a57612adb7a2fb0637b11fa99ede6e75713a082f Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 14 Mar 2021 10:35:56 +0100 Subject: [PATCH] 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 --- .../Shared/DataModelListViewModel.cs | 2 +- .../Screens/Settings/Debug/Tabs/DataModelDebugView.xaml | 7 ++++++- src/Artemis.UI/Screens/TrayViewModel.cs | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Artemis.UI.Shared/DataModelVisualization/Shared/DataModelListViewModel.cs b/src/Artemis.UI.Shared/DataModelVisualization/Shared/DataModelListViewModel.cs index 22eeb33a1..c36d7129e 100644 --- a/src/Artemis.UI.Shared/DataModelVisualization/Shared/DataModelListViewModel.cs +++ b/src/Artemis.UI.Shared/DataModelVisualization/Shared/DataModelListViewModel.cs @@ -116,7 +116,7 @@ namespace Artemis.UI.Shared index++; } - ListCount = index + 1; + ListCount = index; while (ListChildren.Count > ListCount) ListChildren.RemoveAt(ListChildren.Count - 1); diff --git a/src/Artemis.UI/Screens/Settings/Debug/Tabs/DataModelDebugView.xaml b/src/Artemis.UI/Screens/Settings/Debug/Tabs/DataModelDebugView.xaml index 729c67a9a..f2c0b8995 100644 --- a/src/Artemis.UI/Screens/Settings/Debug/Tabs/DataModelDebugView.xaml +++ b/src/Artemis.UI/Screens/Settings/Debug/Tabs/DataModelDebugView.xaml @@ -66,11 +66,16 @@ - + + diff --git a/src/Artemis.UI/Screens/TrayViewModel.cs b/src/Artemis.UI/Screens/TrayViewModel.cs index 112c163b3..c755054af 100644 --- a/src/Artemis.UI/Screens/TrayViewModel.cs +++ b/src/Artemis.UI/Screens/TrayViewModel.cs @@ -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 {