From f23646e4805473a64db4db8e31b32e73e441e69b Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Thu, 3 Oct 2024 11:45:48 -0700 Subject: [PATCH] attempt to fix unknown exception --- .../Common/PersistentWindowProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index baed553..68e46f8 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -1707,7 +1707,7 @@ namespace PersistentWindows.Common // save window size of closed app to restore off-screen window later if (!deadApps.ContainsKey(display_config)) { - deadApps.Add(display_config, new Dictionary>()); + deadApps[display_config] = new Dictionary>(); } // for matching new window with killed one