protected override void OnAttach() { base.OnAttach(); var settings = Application.Settings.Get<PortMapperSettings>(); enabled = settings.Enabled; }