mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Use Bindable instead of bool
This commit is contained in:
@ -159,7 +159,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private void checkVolume(AudioManager audio)
|
||||
{
|
||||
if (volumeOverlay.IsMuted || audio.Volume.Value <= audio.Volume.MinValue || audio.VolumeTrack.Value <= audio.VolumeTrack.MinValue)
|
||||
if (volumeOverlay.IsMuted.Value || audio.Volume.Value <= audio.Volume.MinValue || audio.VolumeTrack.Value <= audio.VolumeTrack.MinValue)
|
||||
notificationOverlay.Post(new MutedNotification());
|
||||
}
|
||||
|
||||
@ -513,7 +513,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
notificationOverlay.Hide();
|
||||
|
||||
volumeOverlay.IsMuted = false;
|
||||
volumeOverlay.IsMuted.Value = false;
|
||||
audioManager.Volume.SetDefault();
|
||||
audioManager.VolumeTrack.SetDefault();
|
||||
|
||||
|
Reference in New Issue
Block a user