use modelName for detection if eligible for motion pro

This commit is contained in:
Vincent Maas committed 2021-05-30 17:17:46 +02:00
1 parent 4614886954
commit a17534abcb
5 files changed
+29 -5

No files matched your search

+2 -1
View File
@@ -2440,7 +2440,8 @@ Do you want to continue?"
private void mnuLgExpert_Opening(object sender, CancelEventArgs e)
{
mnuLgOLEDMotionPro.Visible = _lgService.SelectedDevice?.Name.Contains("C9") ?? _lgService.SelectedDevice?.Name.Contains("B9") ?? false;
var device = _lgService.SelectedDevice;
mnuLgOLEDMotionPro.Visible = device?.ModelName != null ? (device.ModelName.Contains("C9") || device.ModelName.Contains("B9")) : false;
if (mnuLgExpertBacklight.DropDownItems.Count == 0)
{