mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Typo fix, removed unnecessary braces
This commit is contained in:
parent
538c20a947
commit
ac41cb59ea
@ -78,7 +78,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
||||
return true;
|
||||
case GlobalAction.ToggleMute:
|
||||
Show();
|
||||
volumeMeterMaster.ToogleMute();
|
||||
volumeMeterMaster.ToggleMute();
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -96,17 +96,13 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
||||
public void Mute()
|
||||
{
|
||||
if (!IsMuted)
|
||||
{
|
||||
volumeMeterMaster.ToogleMute();
|
||||
}
|
||||
volumeMeterMaster.ToggleMute();
|
||||
}
|
||||
|
||||
public void Unmute()
|
||||
{
|
||||
if (IsMuted)
|
||||
{
|
||||
volumeMeterMaster.ToogleMute();
|
||||
}
|
||||
volumeMeterMaster.ToggleMute();
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
@ -93,7 +93,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
||||
Volume -= 0.05f;
|
||||
}
|
||||
|
||||
public void ToogleMute()
|
||||
public void ToggleMute()
|
||||
{
|
||||
IsMuted = !IsMuted;
|
||||
if (IsMuted)
|
||||
|
Loading…
Reference in New Issue
Block a user