Merge pull request #7808 from peppy/disable-interaction-progress-bar

Disallow seeking on osu!direct download progress bars
This commit is contained in:
Dan Balasescu 2020-02-13 17:47:07 +09:00 committed by GitHub
commit cb46d34dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class DownloadProgressBar : BeatmapDownloadTrackingComposite
public DownloadProgressBar(BeatmapSetInfo beatmapSet)
: base(beatmapSet)
{
AddInternal(progressBar = new ProgressBar
AddInternal(progressBar = new InteractionDisabledProgressBar
{
Height = 0,
Alpha = 0,
@ -64,5 +64,11 @@ private void load(OsuColour colours)
}
}, true);
}
private class InteractionDisabledProgressBar : ProgressBar
{
public override bool HandlePositionalInput => false;
public override bool HandleNonPositionalInput => false;
}
}
}