mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Merge pull request #12271 from hbnrmx/filechooser-preselect-folder
Open editor file selector in the directory of the previous selection
This commit is contained in:
commit
dc3163ccf2
@ -54,7 +54,7 @@ namespace osu.Game.Screens.Edit.Setup
|
|||||||
{
|
{
|
||||||
FileSelector fileSelector;
|
FileSelector fileSelector;
|
||||||
|
|
||||||
Target.Child = fileSelector = new FileSelector(validFileExtensions: ResourcesSection.AudioExtensions)
|
Target.Child = fileSelector = new FileSelector(currentFile.Value?.DirectoryName, ResourcesSection.AudioExtensions)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = 400,
|
Height = 400,
|
||||||
|
@ -73,7 +73,8 @@ namespace osu.Game.Screens.Edit.Setup
|
|||||||
audioTrackTextBox = new FileChooserLabelledTextBox
|
audioTrackTextBox = new FileChooserLabelledTextBox
|
||||||
{
|
{
|
||||||
Label = "Audio Track",
|
Label = "Audio Track",
|
||||||
Current = { Value = working.Value.Metadata.AudioFile ?? "Click to select a track" },
|
PlaceholderText = "Click to select a track",
|
||||||
|
Current = { Value = working.Value.Metadata.AudioFile },
|
||||||
Target = audioTrackFileChooserContainer,
|
Target = audioTrackFileChooserContainer,
|
||||||
TabbableContentContainer = this
|
TabbableContentContainer = this
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user