SEBWIN-534, #261: Fixed bug where displays connected via eDP weren't recognized as internal displays.

This commit is contained in:
Damian Büchel 2021-12-22 16:29:15 +01:00
parent e522a68ead
commit 4897d0ab6f
2 changed files with 2 additions and 3 deletions

View file

@ -12,7 +12,7 @@ namespace SafeExamBrowser.Monitoring.Display
{
public string Identifier { get; set; }
public bool IsActive { get; set; }
public bool IsInternal { get; set; }
public VideoOutputTechnology Technology { get; set; }
public bool IsInternal => Technology == VideoOutputTechnology.DisplayPortEmbedded || Technology == VideoOutputTechnology.Internal;
public VideoOutputTechnology Technology { get; set; } = VideoOutputTechnology.Uninitialized;
}
}

View file

@ -197,7 +197,6 @@ namespace SafeExamBrowser.Monitoring.Display
if (display != default(Display))
{
display.IsActive &= isActive;
display.IsInternal = technology == VideoOutputTechnology.Internal;
display.Technology = technology;
}
}