fix ghost window stealing input focus when exiting dialogs opened by hotkeys, or something like that
This commit is contained in:
parent
f424a22033
commit
3ef2196a28
|
@ -176,7 +176,9 @@ namespace BizHawk.Client.EmuHawk.WinFormExtensions
|
|||
public static DialogResult ShowHawkDialog(this CommonDialog form)
|
||||
{
|
||||
GlobalWin.Sound.StopSound();
|
||||
var result = form.ShowDialog(new Form() { TopMost = true });
|
||||
var tempForm = new Form() { TopMost = true };
|
||||
var result = form.ShowDialog(tempForm);
|
||||
tempForm.Dispose();
|
||||
GlobalWin.Sound.StartSound();
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue