1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 19:27:31 +08:00

Typo fix, removed unnecessary braces

This commit is contained in:
aQaTL 2018-01-17 14:36:33 +01:00
parent 538c20a947
commit ac41cb59ea
No known key found for this signature in database
GPG Key ID: 181719411A8555F0
2 changed files with 4 additions and 8 deletions

View File

@ -78,7 +78,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
return true; return true;
case GlobalAction.ToggleMute: case GlobalAction.ToggleMute:
Show(); Show();
volumeMeterMaster.ToogleMute(); volumeMeterMaster.ToggleMute();
return true; return true;
} }
@ -96,17 +96,13 @@ namespace osu.Game.Graphics.UserInterface.Volume
public void Mute() public void Mute()
{ {
if (!IsMuted) if (!IsMuted)
{ volumeMeterMaster.ToggleMute();
volumeMeterMaster.ToogleMute();
}
} }
public void Unmute() public void Unmute()
{ {
if (IsMuted) if (IsMuted)
{ volumeMeterMaster.ToggleMute();
volumeMeterMaster.ToogleMute();
}
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]

View File

@ -93,7 +93,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
Volume -= 0.05f; Volume -= 0.05f;
} }
public void ToogleMute() public void ToggleMute()
{ {
IsMuted = !IsMuted; IsMuted = !IsMuted;
if (IsMuted) if (IsMuted)