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:
parent
538c20a947
commit
ac41cb59ea
@ -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]
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user