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:
YoshiRulz 2020-09-18 06:52:23 +10:00
parent 9a6b853a49
commit 8aa3dcf72f
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 1 additions and 7 deletions

View File

@ -12,7 +12,7 @@ namespace BizHawk.Client.EmuHawk
{
private string? _windowTitleStatic;
public Config? Config { get; protected set; }
public Config? Config { get; set; }
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public override string Text

View File

@ -13,12 +13,6 @@ namespace BizHawk.Client.EmuHawk
{
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 IMainFormForTools MainForm { get; set; }