Skip to content

Commit 2363d5e

Browse files
committed
Set LuaConsole.MainForm on init
fixes f902c10
1 parent 3b19e4e commit 2363d5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public static Icon ToolIcon
5050

5151
public ToolDialogSettings.ColumnList Columns { get; set; }
5252

53-
[RequiredService]
54-
private new IMainFormForApiInit MainForm { get; set; }
53+
internal new IMainFormForApiInit MainForm { get; set; }
5554

5655
public class LuaConsoleSettings
5756
{

src/BizHawk.Client.EmuHawk/tools/ToolManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ private void SetBaseProperties(IToolForm form)
9696
f.Config = _config;
9797
if (form is not ToolFormBase tool) return;
9898
tool.SetToolFormBaseProps(_displayManager, _inputManager, _owner, _movieSession, this, _game);
99+
if (form is LuaConsole luaConsole) luaConsole.MainForm = _owner; // could go via ServiceProvider but nah
99100
}
100101

101102
/// <summary>

0 commit comments

Comments
 (0)