public override void Init(ITorchBase torch) { base.Init(torch); var sessionManager = Torch.Managers.GetManager <TorchSessionManager>(); if (sessionManager != null) { sessionManager.SessionStateChanged += SessionChanged; } else { Log.Warn("No session manager loaded!"); } SetupConfig(); Plugin = this; // Needed for NoGui }
public GraceControl(GracePlugin plugin) : this() { GracePlugin.Plugin = plugin; DataContext = plugin.Config; }