From 3b3f1caf841bf9b749a8b07c769709018a450418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Sun, 14 Jul 2024 17:25:03 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs | 2 +- ArchiSteamFarm/Plugins/PluginsCore.cs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs b/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs index 8ee68f15f..6713c67a6 100644 --- a/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs +++ b/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs @@ -158,7 +158,7 @@ internal sealed class MonitoringPlugin : OfficialPlugin, IDisposable, IOfficialG Meter.CreateObservableGauge( $"{MetricNamePrefix}_active_plugins", - static () => PluginsCore.ActivePluginsCount, + static () => PluginsCore.ActivePlugins.Count, description: "Number of plugins currently loaded in ASF" ); diff --git a/ArchiSteamFarm/Plugins/PluginsCore.cs b/ArchiSteamFarm/Plugins/PluginsCore.cs index 2efbbb411..da7239eba 100644 --- a/ArchiSteamFarm/Plugins/PluginsCore.cs +++ b/ArchiSteamFarm/Plugins/PluginsCore.cs @@ -55,9 +55,6 @@ using SteamKit2; namespace ArchiSteamFarm.Plugins; public static class PluginsCore { - [PublicAPI] - public static int ActivePluginsCount => ActivePlugins.Count; - internal static bool HasCustomPluginsLoaded => ActivePlugins.Any(static plugin => plugin is not OfficialPlugin officialPlugin || !officialPlugin.HasSameVersion()); [ImportMany]