[skip ci] gsdumpgui: Auto select gsdx dll and gs dump when a directory location is reloaded/changed.

First on list only. Feature to save selection isn't available for now.
This commit is contained in:
lightningterror 2019-05-31 19:24:48 +02:00
parent 877a112193
commit fbafd44209
1 changed files with 12 additions and 0 deletions

View File

@ -186,6 +186,9 @@ namespace GSDumpGUI
Settings.GSDXDir = fbd.SelectedPath; Settings.GSDXDir = fbd.SelectedPath;
Settings.Save(); Settings.Save();
ReloadGsdxDlls(); ReloadGsdxDlls();
// Auto select GSdx dll
_availableGsDlls.Selected = _availableGsDlls.Files.FirstOrDefault();
} }
private void cmdBrowseDumps_Click(object sender, EventArgs e) private void cmdBrowseDumps_Click(object sender, EventArgs e)
@ -197,6 +200,9 @@ namespace GSDumpGUI
Settings.DumpDir = fbd.SelectedPath; Settings.DumpDir = fbd.SelectedPath;
Settings.Save(); Settings.Save();
ReloadGsdxDumps(); ReloadGsdxDumps();
// Auto select GS dump
_availableGsDumps.Selected = _availableGsDumps.Files.FirstOrDefault();
} }
private void cmdRun_Click(object sender, EventArgs e) private void cmdRun_Click(object sender, EventArgs e)
@ -376,12 +382,18 @@ namespace GSDumpGUI
{ {
Settings.Save(); Settings.Save();
ReloadGsdxDlls(); ReloadGsdxDlls();
// Auto select GSdx dll
_availableGsDlls.Selected = _availableGsDlls.Files.FirstOrDefault();
} }
private void txtDumpsDirectory_Leave(object sender, EventArgs e) private void txtDumpsDirectory_Leave(object sender, EventArgs e)
{ {
Settings.Save(); Settings.Save();
ReloadGsdxDumps(); ReloadGsdxDumps();
// Auto select GS dump
_availableGsDumps.Selected = _availableGsDumps.Files.FirstOrDefault();
} }
private void lstProcesses_SelectedIndexChanged(object sender, EventArgs e) private void lstProcesses_SelectedIndexChanged(object sender, EventArgs e)