Default screen fix

This commit is contained in:
Serge
2023-10-01 19:47:37 +02:00
parent ba1607686f
commit d90da6571e

View File

@@ -160,9 +160,11 @@ namespace GHelper.Display
device.monitorFriendlyDeviceName == internalName)
{
if (log) Logger.WriteLine(device.monitorDevicePath + " " + device.outputTechnology);
AppConfig.Set("internal_display", device.monitorFriendlyDeviceName);
var names = device.monitorDevicePath.Split("#");
if (names.Length > 0) return names[1];
if (names.Length > 1) return names[1];
else return "";
}
}