Skip to content

Commit

Permalink
fix: replace constant in internal name check
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-is-cute committed Dec 29, 2023
1 parent f7cdc92 commit 9f5d7bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 9f5d7bb

Please sign in to comment.