mirror of
https://github.com/ppy/osu.git
synced 2025-03-21 21:47:20 +08:00
Fix replay button being disabled when available locally but not online
This commit is contained in:
parent
edb556643e
commit
4432a93d09
@ -87,19 +87,20 @@ namespace osu.Game.Screens.Ranking
|
||||
});
|
||||
}
|
||||
|
||||
button.Enabled.Value = replayAvailability != ReplayAvailability.NotAvailable;
|
||||
updateTooltip();
|
||||
updateState();
|
||||
}, true);
|
||||
|
||||
State.BindValueChanged(state =>
|
||||
{
|
||||
button.State.Value = state.NewValue;
|
||||
updateTooltip();
|
||||
updateState();
|
||||
}, true);
|
||||
}
|
||||
|
||||
private void updateTooltip()
|
||||
private void updateState()
|
||||
{
|
||||
button.Enabled.Value = replayAvailability != ReplayAvailability.NotAvailable;
|
||||
|
||||
switch (replayAvailability)
|
||||
{
|
||||
case ReplayAvailability.Local:
|
||||
|
Loading…
x
Reference in New Issue
Block a user