fix: show real assembly version for plugins

This commit is contained in:
goat 2022-01-08 19:14:31 +01:00
parent b84e9e24e2
commit d13ece1bbf
No known key found for this signature in database
GPG key ID: 7773BB5B43BA52E5

View file

@ -1462,7 +1462,11 @@ namespace Dalamud.Interface.Internal.Windows
this.DrawUpdateSinglePluginButton(availablePluginUpdate);
ImGui.SameLine();
ImGui.TextColored(ImGuiColors.DalamudGrey3, $" v{plugin.Manifest.AssemblyVersion}");
var version = plugin.AssemblyName?.Version;
version ??= plugin.Manifest.Testing
? plugin.Manifest.TestingAssemblyVersion
: plugin.Manifest.AssemblyVersion;
ImGui.TextColored(ImGuiColors.DalamudGrey3, $" v{version}");
if (plugin.IsDev)
{