From 72f1d70342f68765b114d523af4a6db7e4e719fd Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Sun, 27 Oct 2024 16:52:54 +0000 Subject: [PATCH] Fix log file access through activity watcher icon wasn't showing due to the changes made to how the activity watcher works --- Bloxstrap/Integrations/ActivityWatcher.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bloxstrap/Integrations/ActivityWatcher.cs b/Bloxstrap/Integrations/ActivityWatcher.cs index 2e0483a..8132250 100644 --- a/Bloxstrap/Integrations/ActivityWatcher.cs +++ b/Bloxstrap/Integrations/ActivityWatcher.cs @@ -102,8 +102,6 @@ await Task.Delay(1000); } - OnLogOpen?.Invoke(this, EventArgs.Empty); - LogLocation = logFileInfo.FullName; } else @@ -111,6 +109,8 @@ logFileInfo = new FileInfo(LogLocation); } + OnLogOpen?.Invoke(this, EventArgs.Empty); + var logFileStream = logFileInfo.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite); App.Logger.WriteLine(LOG_IDENT, $"Opened {LogLocation}");