From c5363769c29e309544aa1cf71e760a3ad39e19e3 Mon Sep 17 00:00:00 2001 From: Infi Date: Sun, 26 May 2024 13:53:26 +0200 Subject: [PATCH] Force main window to be always open --- ChatTwo/Ui/ChatLogWindow.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ChatTwo/Ui/ChatLogWindow.cs b/ChatTwo/Ui/ChatLogWindow.cs index 3df77e6..591f4ca 100644 --- a/ChatTwo/Ui/ChatLogWindow.cs +++ b/ChatTwo/Ui/ChatLogWindow.cs @@ -493,6 +493,12 @@ public sealed class ChatLogWindow : Window StyleModel.GetConfiguredStyles()?.FirstOrDefault(style => style.Name == Plugin.Config.ChosenStyle)?.Pop(); } + public override void OnClose() + { + // We force the main log to be always open + IsOpen = true; + } + public override void Draw() { DrawChatLog();