From e8725ae0d25fdb7043463ad7d1b0c78441fe963f Mon Sep 17 00:00:00 2001 From: Karol Ciechlecki Date: Sun, 14 Aug 2022 15:32:55 +0200 Subject: [PATCH] Bypass low battery notification when using an USB controller --- BetterJoyForCemu/Joycon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BetterJoyForCemu/Joycon.cs b/BetterJoyForCemu/Joycon.cs index 1a0071f..afb2d47 100644 --- a/BetterJoyForCemu/Joycon.cs +++ b/BetterJoyForCemu/Joycon.cs @@ -499,7 +499,7 @@ namespace BetterJoyForCemu { } } - if (battery <= 1) { + if (battery <= 1 && !isUSB) { form.notifyIcon.Visible = true; form.notifyIcon.BalloonTipText = String.Format("Controller {0} ({1}) - low battery notification!", PadId, isPro ? "Pro Controller" : (isSnes ? "SNES Controller" : (isLeft ? "Joycon Left" : "Joycon Right"))); form.notifyIcon.ShowBalloonTip(0);