mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Create InitialPath property.
This commit is contained in:
@ -17,6 +17,8 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
||||
[Resolved]
|
||||
private Storage storage { get; set; }
|
||||
|
||||
protected override DirectoryInfo InitialPath => new DirectoryInfo(storage.GetFullPath(string.Empty)).Parent;
|
||||
|
||||
protected override OsuSpriteText CreateHeader() => new OsuSpriteText
|
||||
{
|
||||
Text = "Please select a new location",
|
||||
@ -42,12 +44,6 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
||||
BeginMigration(target);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
DirectorySelector.CurrentPath.Value = new DirectoryInfo(storage.GetFullPath(string.Empty)).Parent;
|
||||
base.LoadComplete();
|
||||
}
|
||||
|
||||
protected virtual void BeginMigration(DirectoryInfo target) => this.Push(new MigrationRunScreen(target));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user