public void AddBtHeader() { if (_PlayniteApi.ApplicationInfo.Mode == ApplicationMode.Desktop) { if (PluginDatabase.PluginSettings.EnableIntegrationButtonHeader) { logger.Info("GameActivity - Add Header button"); Button btHeader = new GameActivityButtonHeader(TransformIcon.Get("GameActivity")); btHeader.SetValue(TextBlock.FontWeightProperty, FontWeights.Bold); btHeader.Click += OnBtHeaderClick; ui.AddButtonInWindowsHeader(btHeader); } } }
public override void OnApplicationStarted() { // Add code to be executed when Playnite is initialized. if (settings.EnableIntegrationButtonHeader) { logger.Info("GameActivity - Add Header button"); Button btHeader = new GameActivityButtonHeader(TransformIcon.Get("GameActivity")); btHeader.SetValue(TextBlock.FontWeightProperty, FontWeights.Bold); btHeader.Click += OnBtHeaderClick; ui.AddButtonInWindowsHeader(btHeader); } CheckGoodForLogging(true); }