public RealTimePPDisplayerPlugin() : base(PLUGIN_NAME, PLUGIN_AUTHOR) { I18n.Instance.ApplyLanguage(new DefaultLanguage()); EventBus.BindEvent <PluginEvents.InitCommandEvent>(InitCommand); Instance = this; }
public RealTimePPDisplayerPlugin() : base(PLUGIN_NAME, PLUGIN_AUTHOR) { I18n.Instance.ApplyLanguage(new DefaultLanguage()); EventBus.BindEvent <PluginEvents.InitCommandEvent>(InitCommand); EventBus.BindEvent <PluginEvents.ProgramReadyEvent>(InitDisplayer); EventBus.BindEvent <PluginEvents.ProgramReadyEvent>((e) => { Task.Run(() => UpdateChecker.CheckUpdate()); }); Instance = this; }