mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +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))
|
||||
return;
|
||||
|
||||
foreach (var hwnd in fullScreenGamingWindows)
|
||||
{
|
||||
if (IsFullScreen(hwnd))
|
||||
return;
|
||||
}
|
||||
|
||||
Log.Trace("Capture timer expired");
|
||||
BatchCaptureApplicationsOnCurrentDisplays();
|
||||
});
|
||||
|
@ -2409,6 +2403,12 @@ namespace PersistentWindows.Common
|
|||
{
|
||||
try
|
||||
{
|
||||
foreach (var hwnd in fullScreenGamingWindows)
|
||||
{
|
||||
if (IsFullScreen(hwnd))
|
||||
return;
|
||||
}
|
||||
|
||||
if (restoringFromMem)
|
||||
{
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue