Fix hotkey dialog so that hotkeys update upon clicking the save button

This commit is contained in:
andres.delikat 2011-04-10 16:58:42 +00:00
parent 5d2fbba8e7
commit ee017e1e34
2 changed files with 6 additions and 1 deletions

View File

@ -319,6 +319,11 @@ namespace BizHawk.MultiClient
{
BizHawk.MultiClient.tools.HotkeyWindow h = new BizHawk.MultiClient.tools.HotkeyWindow();
h.ShowDialog();
if (h.DialogResult == DialogResult.OK)
{
InitControls();
SyncControls();
}
}
private void displayFPSToolStripMenuItem_Click(object sender, EventArgs e)

View File

@ -111,7 +111,7 @@ namespace BizHawk.MultiClient.tools
Global.Config.SelectSlot8 = IDW_ST8.Text;
Global.Config.SelectSlot9 = IDW_ST9.Text;
Global.Config.ToolBox = IDW_TOOLBOX.Text;
this.DialogResult = DialogResult.OK;
this.Close();
}