From 580a0864e2784bf1960134f55e47755b70ed3a3b Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Sat, 12 Oct 2024 19:26:45 -0700 Subject: [PATCH] auto dump xml when changing from normal display session --- .../Common/PersistentWindowProcessor.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index 3554f29..2f18cfc 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -799,8 +799,11 @@ namespace PersistentWindows.Common EndDisplaySession(); freezeCapture = true; - WriteDataDump(); - Log.Event("Session changing"); + if (normalSessions.Contains(curDisplayKey)) + { + WriteDataDump(); + Log.Event("Display session changed, dump history in xml"); + } } }; SystemEvents.DisplaySettingsChanging += this.displaySettingsChangingHandler;