mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
minor restore speed up
This commit is contained in:
parent
b758b474cd
commit
0d5d0372ee
1 changed files with 3 additions and 4 deletions
|
@ -2166,11 +2166,10 @@ namespace PersistentWindows.Common
|
|||
|
||||
if (monitorApplications.ContainsKey(curDisplayKey))
|
||||
{
|
||||
foreach (var hwnd in monitorApplications[curDisplayKey].Keys)
|
||||
//foreach (var hwnd in monitorApplications[curDisplayKey].Keys)
|
||||
if (monitorApplications[curDisplayKey].ContainsKey(h))
|
||||
{
|
||||
if (h != IntPtr.Zero && hwnd != h)
|
||||
continue;
|
||||
|
||||
IntPtr hwnd = h;
|
||||
for (int i = monitorApplications[curDisplayKey][hwnd].Count - 1; i >= 0; --i)
|
||||
{
|
||||
if (!monitorApplications[curDisplayKey][hwnd][i].IsValid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue