From 65c60ae3bb85f15987a036fd0b02c1beb84d1677 Mon Sep 17 00:00:00 2001 From: Aptivi Date: Thu, 19 Sep 2024 13:23:37 +0300 Subject: [PATCH] imp - Reset volume when booster is off (CLI) --- When we need to turn off the volume booster, reset the volume to 1.0 if it's previously at 3.0. --- Type: imp Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- BassBoom.Cli/CliBase/Common.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BassBoom.Cli/CliBase/Common.cs b/BassBoom.Cli/CliBase/Common.cs index 89cab28..71f2ca7 100644 --- a/BassBoom.Cli/CliBase/Common.cs +++ b/BassBoom.Cli/CliBase/Common.cs @@ -288,6 +288,8 @@ internal static void HandleKeypressCommon(ConsoleKeyInfo keystroke, Screen playe break; case ConsoleKey.V: volBoost = !volBoost; + if (!volBoost && volume > 1.0) + RaiseVolume(); break; case ConsoleKey.D: if (keystroke.Modifiers == ConsoleModifiers.Control)