SoundConfig - pass in mainForm
This commit is contained in:
parent
eb438fd9cb
commit
1fd9bd7b38
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue