mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
UI error on wrong mouse DPI https://github.com/seerge/g-helper/issues/1850#issuecomment-1878456736
This commit is contained in:
@@ -863,7 +863,14 @@ namespace GHelper
|
|||||||
|
|
||||||
private void VisualizeCurrentDPIProfile()
|
private void VisualizeCurrentDPIProfile()
|
||||||
{
|
{
|
||||||
|
if (mouse.DpiProfile > mouse.DpiSettings.Count())
|
||||||
|
{
|
||||||
|
Logger.WriteLine($"Wrong mouse DPI: {mouse.DpiProfile}");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
AsusMouseDPI dpi = mouse.DpiSettings[mouse.DpiProfile - 1];
|
AsusMouseDPI dpi = mouse.DpiSettings[mouse.DpiProfile - 1];
|
||||||
|
|
||||||
if (dpi is null)
|
if (dpi is null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user