mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Fixes crash when DPI was not read yet.
This commit is contained in:
@@ -797,6 +797,10 @@ namespace GHelper
|
||||
private void VisualizeCurrentDPIProfile()
|
||||
{
|
||||
AsusMouseDPI dpi = mouse.DpiSettings[mouse.DpiProfile - 1];
|
||||
if (dpi is null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
sliderDPI.Value = (int)dpi.DPI;
|
||||
pictureDPIColor.BackColor = dpi.Color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user