Remove ToolFormBase.Config and use base property
The non-weird init in ToolManager can't pass in the ctor because 1. Config is written to in Restart as well as Load and 2. it's a base class and that's not how ctors work and I should know this
This commit is contained in:
parent
9a6b853a49
commit
8aa3dcf72f
|
@ -12,7 +12,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
private string? _windowTitleStatic;
|
private string? _windowTitleStatic;
|
||||||
|
|
||||||
public Config? Config { get; protected set; }
|
public Config? Config { get; set; }
|
||||||
|
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||||
public override string Text
|
public override string Text
|
||||||
|
|
|
@ -13,12 +13,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
public ToolManager Tools { get; set; }
|
public ToolManager Tools { get; set; }
|
||||||
|
|
||||||
public new Config Config
|
|
||||||
{
|
|
||||||
get => base.Config;
|
|
||||||
set => base.Config = value; //TODO used once in ToolManager (for init) and twice in dumb ways
|
|
||||||
}
|
|
||||||
|
|
||||||
public InputManager InputManager { get; set; }
|
public InputManager InputManager { get; set; }
|
||||||
public IMainFormForTools MainForm { get; set; }
|
public IMainFormForTools MainForm { get; set; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue