mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Adds DisableSeek property to MusicController
This commit is contained in:
@ -221,9 +221,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
private bool? conditionalSeek(double progress)
|
||||
{
|
||||
if (current.Track.Looping)
|
||||
return current?.Track.Seek(progress);
|
||||
return false;
|
||||
return DisableSeek ? false : current?.Track.Seek(progress);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
@ -235,6 +233,8 @@ namespace osu.Game.Overlays
|
||||
base.LoadComplete();
|
||||
}
|
||||
|
||||
public bool DisableSeek { get; set; }
|
||||
|
||||
private void beatmapDisabledChanged(bool disabled)
|
||||
{
|
||||
if (disabled)
|
||||
|
Reference in New Issue
Block a user