SoundConfig - pass in mainForm

This commit is contained in:
adelikat 2019-12-31 17:14:04 -06:00
parent eb438fd9cb
commit 1fd9bd7b38
2 changed files with 2 additions and 2 deletions

View File

@ -998,7 +998,7 @@ namespace BizHawk.Client.EmuHawk
private void SoundMenuItem_Click(object sender, EventArgs e)
{
using var form = new SoundConfig(Config);
using var form = new SoundConfig(Config) { Owner = this };
if (form.ShowDialog().IsOk())
{
Sound.StartSound();

View File

@ -73,7 +73,7 @@ namespace BizHawk.Client.EmuHawk
|| _config.SoundDevice != oldDevice)
{
GlobalWin.Sound.Dispose();
GlobalWin.Sound = new Sound(GlobalWin.MainForm.Handle);
GlobalWin.Sound = new Sound(Owner.Handle);
}
DialogResult = DialogResult.OK;