fix #537 Annoyance with "always on top"
This commit is contained in:
parent
f0e93ce80d
commit
53eae133e7
|
@ -157,10 +157,10 @@ namespace BizHawk.Client.EmuHawk.WinFormExtensions
|
|||
/// <summary>
|
||||
/// Handles EmuHawk specific issues before showing a modal dialog
|
||||
/// </summary>
|
||||
public static DialogResult ShowHawkDialog(this Form form)
|
||||
public static DialogResult ShowHawkDialog(this Form form, IWin32Window owner = null)
|
||||
{
|
||||
GlobalWin.Sound.StopSound();
|
||||
var result = form.ShowDialog();
|
||||
var result = (owner == null ? form.ShowDialog() : form.ShowDialog(owner));
|
||||
GlobalWin.Sound.StartSound();
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -756,7 +756,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
MemoryDomains = _memoryDomains
|
||||
};
|
||||
we.SetWatch(_watches.Domain);
|
||||
we.ShowHawkDialog();
|
||||
we.ShowHawkDialog(this);
|
||||
if (we.DialogResult == DialogResult.OK)
|
||||
{
|
||||
_watches.Add(we.Watches[0]);
|
||||
|
|
Loading…
Reference in New Issue