diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-02-10 15:01:50 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-02-10 15:01:50 +0200 |
| commit | c027cee20aabc6edfcc80b6f336911ce1c5eb1fb (patch) | |
| tree | 3dfd5cc599920b5c5db46710f38a775fc6538a60 /Software/Visual_Studio/PPC/Tango.PPC.Updater | |
| parent | 4a975ab371e8c46f5f16eda9251a81edad1334d6 (diff) | |
| download | Tango-c027cee20aabc6edfcc80b6f336911ce1c5eb1fb.tar.gz Tango-c027cee20aabc6edfcc80b6f336911ce1c5eb1fb.zip | |
Fixed a small issue with ppc update touch monitor detection.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Updater')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs index 55c60058b..eb8d61a6b 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs @@ -53,7 +53,7 @@ namespace Tango.PPC.Updater var screens = System.Windows.Forms.Screen.AllScreens; //Search for the vertical touch monitor. - var touch_screen = screens.Where(x => x.Bounds.Height > x.Bounds.Width).Last(); + var touch_screen = screens.Where(x => x.Bounds.Height > x.Bounds.Width).LastOrDefault(); if (touch_screen != null) { |
