mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-12 13:35:39 +02:00
catch occasional container iteration exception when starting full-screen game
This commit is contained in:
parent
b1888cbf9b
commit
e99518f23b
1 changed files with 6 additions and 6 deletions
|
@ -539,12 +539,6 @@ namespace PersistentWindows.Common
|
||||||
if (fullScreenGamingWindows.Contains(foreGroundWindow))
|
if (fullScreenGamingWindows.Contains(foreGroundWindow))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var hwnd in fullScreenGamingWindows)
|
|
||||||
{
|
|
||||||
if (IsFullScreen(hwnd))
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.Trace("Capture timer expired");
|
Log.Trace("Capture timer expired");
|
||||||
BatchCaptureApplicationsOnCurrentDisplays();
|
BatchCaptureApplicationsOnCurrentDisplays();
|
||||||
});
|
});
|
||||||
|
@ -2409,6 +2403,12 @@ namespace PersistentWindows.Common
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
foreach (var hwnd in fullScreenGamingWindows)
|
||||||
|
{
|
||||||
|
if (IsFullScreen(hwnd))
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (restoringFromMem)
|
if (restoringFromMem)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue