From e82561239689b4ae41db2267b32b334d0405a3b3 Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Sun, 23 Jul 2023 17:54:37 +0200 Subject: [PATCH] Disable the button if the mouse is not ready yet. --- app/Settings.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Settings.cs b/app/Settings.cs index fcf25280..0b4d9a10 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -1094,11 +1094,13 @@ namespace GHelper { b.Text = m.GetDisplayName() + "\n" + m.Battery + "%" + (m.Charging ? "(" + Properties.Strings.Charging + ")" : ""); + b.Enabled = true; } else { //Mouse is either not connected or in standby b.Text = m.GetDisplayName() + "\n(" + Properties.Strings.NotConnected + ")"; + b.Enabled = false; } switch (m.DeviceType())