aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ava/AppHost.cs
diff options
context:
space:
mode:
authorrmg-x <git@rmgx.io>2023-12-11 20:26:11 +0000
committerGitHub <noreply@github.com>2023-12-11 21:26:11 +0100
commitad8d5b9b5622f331db0e0e2a7f5ba715b2aa8302 (patch)
tree3fc25b33232d3f2c687ae1d6e8b36af90ffd846f /src/Ryujinx.Ava/AppHost.cs
parent1df6c07f78c4c3b8c7fc679d7466f79a10c2d496 (diff)
Ava UI: Fix temporary volume not being set after unmute (#5833)
Diffstat (limited to 'src/Ryujinx.Ava/AppHost.cs')
-rw-r--r--src/Ryujinx.Ava/AppHost.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Ryujinx.Ava/AppHost.cs b/src/Ryujinx.Ava/AppHost.cs
index dac4a3c5..2fd9ce00 100644
--- a/src/Ryujinx.Ava/AppHost.cs
+++ b/src/Ryujinx.Ava/AppHost.cs
@@ -1088,10 +1088,11 @@ namespace Ryujinx.Ava
case KeyboardHotkeyState.ToggleMute:
if (Device.IsAudioMuted())
{
- Device.SetVolume(ConfigurationState.Instance.System.AudioVolume);
+ Device.SetVolume(_viewModel.VolumeBeforeMute);
}
else
{
+ _viewModel.VolumeBeforeMute = Device.GetVolume();
Device.SetVolume(0);
}