1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

Do not reset last hover sound playback time on inactivity

This commit is contained in:
Bartłomiej Dach 2021-12-21 08:47:41 +01:00
parent cd10af633c
commit 979624160f
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,8 @@ namespace osu.Game.Tests.NonVisual
Assert.IsTrue(sessionStatics.GetBindable<bool>(Static.LoginOverlayDisplayed).IsDefault);
Assert.IsTrue(sessionStatics.GetBindable<bool>(Static.MutedAudioNotificationShownOnce).IsDefault);
Assert.IsTrue(sessionStatics.GetBindable<bool>(Static.LowBatteryNotificationShownOnce).IsDefault);
Assert.IsTrue(sessionStatics.GetBindable<double?>(Static.LastHoverSoundPlaybackTime).IsDefault);
// some statics should not reset despite inactivity.
Assert.IsFalse(sessionStatics.GetBindable<double?>(Static.LastHoverSoundPlaybackTime).IsDefault);
}
}
}

View File

@ -32,7 +32,6 @@ namespace osu.Game.Configuration
GetBindable<bool>(Static.LoginOverlayDisplayed).SetDefault();
GetBindable<bool>(Static.MutedAudioNotificationShownOnce).SetDefault();
GetBindable<bool>(Static.LowBatteryNotificationShownOnce).SetDefault();
GetBindable<double?>(Static.LastHoverSoundPlaybackTime).SetDefault();
}
}