From f177f50e28a8e7a4c30b9c26b18ca929f4058216 Mon Sep 17 00:00:00 2001 From: K97i <105120272+K97i@users.noreply.github.com> Date: Fri, 19 Sep 2025 12:58:05 +0800 Subject: [PATCH 1/3] Janky headless mode --- client/DebugLog.cs | 8 +++ client/Frontend/App.xaml | 2 +- client/Frontend/App.xaml.cs | 107 +++++++++++++++++++++++++++++----- client/Monolith.cs | 57 +++++++++++++----- client/Settings.cs | 1 + client/data/Methods/System.cs | 24 ++++++-- client/specify_client.csproj | 24 ++++---- 7 files changed, 178 insertions(+), 45 deletions(-) diff --git a/client/DebugLog.cs b/client/DebugLog.cs index 8fb4733..6cb157f 100644 --- a/client/DebugLog.cs +++ b/client/DebugLog.cs @@ -236,6 +236,10 @@ public static async Task LogEventAsync(string message, Region region = Region.Mi } logSemaphore.Release(); } + + if (Settings.Headless) + Console.WriteLine(debugString); + LogText += debugString; } @@ -278,6 +282,10 @@ public static void LogEvent(string message, Region region = Region.Misc, EventTy } logSemaphore.Release(); } + + if (Settings.Headless) + Console.WriteLine(debugString); + LogText += debugString; } diff --git a/client/Frontend/App.xaml b/client/Frontend/App.xaml index fa9fc26..2184258 100644 --- a/client/Frontend/App.xaml +++ b/client/Frontend/App.xaml @@ -2,7 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:specify_client" - StartupUri="\Frontend\Landing.xaml" Startup="Application_Startup"> + Startup="Application_Startup">