ToolManager - a small cleanup now that there is an owner variable

This commit is contained in:
adelikat 2015-02-22 04:06:40 +00:00
parent 41950cb9e0
commit ecaf95f400
1 changed files with 2 additions and 2 deletions
BizHawk.Client.EmuHawk/tools

View File

@ -145,7 +145,7 @@ namespace BizHawk.Client.EmuHawk
form.Owner = settings.FloatingWindow ? null : GlobalWin.MainForm;
}
private static void AttachSettingHooks(IToolFormAutoConfig tool, ToolDialogSettings settings)
private void AttachSettingHooks(IToolFormAutoConfig tool, ToolDialogSettings settings)
{
var form = (Form)tool;
ToolStripItemCollection dest = null;
@ -223,7 +223,7 @@ namespace BizHawk.Client.EmuHawk
bool val = !(o as ToolStripMenuItem).Checked;
settings.FloatingWindow = val;
(o as ToolStripMenuItem).Checked = val;
form.Owner = val ? null : GlobalWin.MainForm;
form.Owner = val ? null : _owner;
};
dest[idx + 3].Click += (o, e) =>
{