From 6d6b6f7951e0d0195ead92523f669a5853688f20 Mon Sep 17 00:00:00 2001 From: F K <54195004+fredjk-gh@users.noreply.github.com> Date: Tue, 30 Jan 2024 20:48:18 -0500 Subject: [PATCH] [Core] Make Prereading the default behavior, re-enable settings upgrade (#140) Pre-reading is good. And turns out a number of plugins kinda depend on it now. Time to make it default. Also, comment out settings upgrades so settings are carried over from version to version when running in the IDE -- which makes using it far better. --- ObservatoryCore/ObservatoryCore.cs | 2 +- ObservatoryCore/Utils/LogMonitor.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ObservatoryCore/ObservatoryCore.cs b/ObservatoryCore/ObservatoryCore.cs index 4abc1fc..3d0e214 100644 --- a/ObservatoryCore/ObservatoryCore.cs +++ b/ObservatoryCore/ObservatoryCore.cs @@ -30,7 +30,7 @@ namespace Observatory { try { - // Properties.Core.Default.Upgrade(); + Properties.Core.Default.Upgrade(); } catch { diff --git a/ObservatoryCore/Utils/LogMonitor.cs b/ObservatoryCore/Utils/LogMonitor.cs index a6000d8..08be750 100644 --- a/ObservatoryCore/Utils/LogMonitor.cs +++ b/ObservatoryCore/Utils/LogMonitor.cs @@ -119,8 +119,7 @@ namespace Observatory.Utils public void PrereadJournals() { - if (!Properties.Core.Default.TryPrimeSystemContextOnStartMonitor || - Properties.Core.Default.StartReadAll) return; + if (Properties.Core.Default.StartReadAll) return; SetLogMonitorState(currentState | LogMonitorState.PreRead);