mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09: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;
|
updateState();
|
||||||
updateTooltip();
|
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
State.BindValueChanged(state =>
|
State.BindValueChanged(state =>
|
||||||
{
|
{
|
||||||
button.State.Value = state.NewValue;
|
button.State.Value = state.NewValue;
|
||||||
updateTooltip();
|
updateState();
|
||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateTooltip()
|
private void updateState()
|
||||||
{
|
{
|
||||||
|
button.Enabled.Value = replayAvailability != ReplayAvailability.NotAvailable;
|
||||||
|
|
||||||
switch (replayAvailability)
|
switch (replayAvailability)
|
||||||
{
|
{
|
||||||
case ReplayAvailability.Local:
|
case ReplayAvailability.Local:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user