diff --git a/Plugin.cs b/Plugin.cs index 81f0a2d..51ff383 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -187,9 +187,9 @@ public Plugin() { this.PluginUi.OpenAntiVirusWarning(); } - // FIXME: replace constant heliosphere-plugin - if (this.Interface.InstalledPlugins.FirstOrDefault(plugin => plugin.InternalName == "heliosphere-plugin") is { } installed) { - var actual = typeof(Plugin).Assembly.GetName().Version; + var assemblyName = typeof(Plugin).Assembly.GetName(); + if (this.Interface.InstalledPlugins.FirstOrDefault(plugin => plugin.InternalName == assemblyName.Name) is { } installed) { + var actual = assemblyName.Version; if (actual != null && installed.Version != actual) { this.PluginUi.AddIfNotPresent(new VersionMismatchDialog(installed.Version, actual)); }