mirror of
https://github.com/ppy/osu
synced 2025-01-12 17:19:38 +00:00
Don't queue export replay operations if button is disabled
This commit is contained in:
parent
55cb400674
commit
35ec55c1f6
@ -117,11 +117,17 @@ namespace osu.Game.Screens.Ranking
|
||||
return true;
|
||||
|
||||
case GlobalAction.ExportReplay:
|
||||
State.BindValueChanged(exportWhenReady, true);
|
||||
|
||||
// start the import via button
|
||||
if (State.Value != DownloadState.LocallyAvailable)
|
||||
if (State.Value == DownloadState.LocallyAvailable)
|
||||
{
|
||||
State.BindValueChanged(exportWhenReady, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
// A download needs to be performed before we can export this replay.
|
||||
button.TriggerClick();
|
||||
if (button.Enabled.Value)
|
||||
State.BindValueChanged(exportWhenReady, true);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user