Fix backwards stable install resolution logic.

This commit is contained in:
Lucas A
2021-05-17 18:39:04 +02:00
parent 6110a847aa
commit 97952bc3f0

View File

@ -69,13 +69,13 @@ namespace osu.Game.Database
private async Task<StableStorage> getStableStorage()
{
var stableStorage = game.GetStorageForStableInstall();
if (stableStorage != null)
return stableStorage;
if (cachedStorage != null)
return cachedStorage;
var stableStorage = game.GetStorageForStableInstall();
if (stableStorage != null)
return cachedStorage = stableStorage;
var taskCompletionSource = new TaskCompletionSource<string>(TaskCreationOptions.RunContinuationsAsynchronously);
Schedule(() => dialogOverlay.Push(new StableDirectoryLocationDialog(taskCompletionSource)));
var stablePath = await taskCompletionSource.Task.ConfigureAwait(false);