mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
remove invalid capture from history dump
This commit is contained in:
parent
b758dfed2d
commit
b02d160872
1 changed files with 11 additions and 2 deletions
|
@ -232,9 +232,18 @@ namespace PersistentWindows.Common
|
|||
List<int> history = new List<int>();
|
||||
for (int i = 0; i < dump_apps[display_key][hwnd].Count; ++i)
|
||||
{
|
||||
if (dump_apps[display_key][hwnd][i].SnapShotFlags != 0)
|
||||
continue;
|
||||
if (!dump_apps[display_key][hwnd][i].IsValid)
|
||||
history.Add(i);
|
||||
}
|
||||
for (int i = history.Count - 1; i >= 0; --i)
|
||||
{
|
||||
dump_apps[display_key][hwnd].RemoveAt(history[i]);
|
||||
}
|
||||
|
||||
history.Clear();
|
||||
for (int i = 0; i < dump_apps[display_key][hwnd].Count; ++i)
|
||||
{
|
||||
if (dump_apps[display_key][hwnd][i].SnapShotFlags != 0)
|
||||
continue;
|
||||
history.Add(i);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue