Bring back initial directory behaviour

This commit is contained in:
Bartłomiej Dach 2020-06-13 19:28:21 +02:00
parent eb92c3390d
commit 51bbd91373
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ public class StablePathSelectScreen : TournamentScreen
[BackgroundDependencyLoader(true)]
private void load(Storage storage, OsuColour colours)
{
var initialPath = new DirectoryInfo(storage.GetFullPath(string.Empty)).Parent?.FullName;
var initialStorage = (ipc as FileBasedIPC)?.IPCStorage ?? storage;
var initialPath = new DirectoryInfo(initialStorage.GetFullPath(string.Empty)).Parent?.FullName;
AddRangeInternal(new Drawable[]
{