Skip to content

Commit 8fcaac6

Browse files
committed
Make shader file picker (in DisplayConfig) open in data base dir
1 parent b4b95a1 commit 8fcaac6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BizHawk.Client.EmuHawk/config/DisplayConfig.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ private void BtnSelectUserFilter_Click(object sender, EventArgs e)
277277
var result = this.ShowFileOpenDialog(
278278
filter: CgShaderPresetsFSFilterSet,
279279
initDir: string.IsNullOrWhiteSpace(_pathSelection)
280-
? string.Empty : Path.GetDirectoryName(_pathSelection)!,
280+
? _config.PathEntries.GlobalBaseAbsolutePath()
281+
: Path.GetDirectoryName(_pathSelection)!,
281282
initFileName: _pathSelection);
282283
if (result is null) return;
283284

0 commit comments

Comments
 (0)