diff --git a/app/Display/ScreenNative.cs b/app/Display/ScreenNative.cs index 37dc25fb..90cfdbf0 100644 --- a/app/Display/ScreenNative.cs +++ b/app/Display/ScreenNative.cs @@ -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 ""; } }