Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit 6e94f1a

Browse files
committed
logic fix in index guard encountered on run after physical screen removal
1 parent f6eccc6 commit 6e94f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PreferencesManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ private T LoadPrefByScreen<T>(int screenNum, string prefBaseName, string primary
315315
// look for the non-screen-specific pref setting, and if found, move it from there.
316316
// This is a one-off preferences upgrade.
317317

318-
if (Screen.AllScreens.Length == 1 || Screen.AllScreens.Length < screenNum && Screen.AllScreens[screenNum].Primary)
318+
if (Screen.AllScreens.Length == 1 || Screen.AllScreens.Length >= screenNum && Screen.AllScreens[screenNum].Primary)
319319
{
320320
if (reg.GetValueNames().Contains(prefBaseName))
321321
{

0 commit comments

Comments
 (0)