[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

View File

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