mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
hide seekbar when no song is playing
This commit is contained in:
@ -245,10 +245,10 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
if (current?.TrackLoaded ?? false)
|
var track = (current?.TrackLoaded ?? false) ? current.Track : null;
|
||||||
{
|
|
||||||
var track = current.Track;
|
|
||||||
|
|
||||||
|
if (track != null && !track.IsDummyDevice)
|
||||||
|
{
|
||||||
progressBar.EndTime = track.Length;
|
progressBar.EndTime = track.Length;
|
||||||
progressBar.CurrentTime = track.CurrentTime;
|
progressBar.CurrentTime = track.CurrentTime;
|
||||||
|
|
||||||
@ -258,7 +258,11 @@ namespace osu.Game.Overlays
|
|||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
progressBar.CurrentTime = 0;
|
||||||
|
progressBar.EndTime = 1;
|
||||||
playButton.Icon = FontAwesome.fa_play_circle_o;
|
playButton.Icon = FontAwesome.fa_play_circle_o;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void play()
|
private void play()
|
||||||
|
Reference in New Issue
Block a user