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>
|
/// <summary>
|
||||||
/// Handles EmuHawk specific issues before showing a modal dialog
|
/// Handles EmuHawk specific issues before showing a modal dialog
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static DialogResult ShowHawkDialog(this Form form)
|
public static DialogResult ShowHawkDialog(this Form form, IWin32Window owner = null)
|
||||||
{
|
{
|
||||||
GlobalWin.Sound.StopSound();
|
GlobalWin.Sound.StopSound();
|
||||||
var result = form.ShowDialog();
|
var result = (owner == null ? form.ShowDialog() : form.ShowDialog(owner));
|
||||||
GlobalWin.Sound.StartSound();
|
GlobalWin.Sound.StartSound();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -756,7 +756,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
MemoryDomains = _memoryDomains
|
MemoryDomains = _memoryDomains
|
||||||
};
|
};
|
||||||
we.SetWatch(_watches.Domain);
|
we.SetWatch(_watches.Domain);
|
||||||
we.ShowHawkDialog();
|
we.ShowHawkDialog(this);
|
||||||
if (we.DialogResult == DialogResult.OK)
|
if (we.DialogResult == DialogResult.OK)
|
||||||
{
|
{
|
||||||
_watches.Add(we.Watches[0]);
|
_watches.Add(we.Watches[0]);
|
||||||
|
|
Loading…
Reference in New Issue