From 0e927fef6f7c1211b405e8fbb25d10321eafaa88 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Fri, 26 Jul 2024 17:17:52 +0200 Subject: [PATCH] Show version in quest window --- Questionable/Windows/QuestWindow.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Questionable/Windows/QuestWindow.cs b/Questionable/Windows/QuestWindow.cs index aff07320..30546bc4 100644 --- a/Questionable/Windows/QuestWindow.cs +++ b/Questionable/Windows/QuestWindow.cs @@ -1,4 +1,5 @@ -using System.Numerics; +using System; +using System.Numerics; using Dalamud.Plugin; using Dalamud.Plugin.Services; using ImGuiNET; @@ -11,6 +12,7 @@ namespace Questionable.Windows; internal sealed class QuestWindow : LWindow, IPersistableWindowConfig { + private static readonly Version PluginVersion = typeof(QuestionablePlugin).Assembly.GetName().Version!; private readonly IDalamudPluginInterface _pluginInterface; private readonly QuestController _questController; @@ -33,7 +35,7 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig CreationUtilsComponent creationUtilsComponent, QuickAccessButtonsComponent quickAccessButtonsComponent, RemainingTasksComponent remainingTasksComponent) - : base("Questionable###Questionable", ImGuiWindowFlags.AlwaysAutoResize) + : base($"Questionable v{PluginVersion.ToString(2)}###Questionable", ImGuiWindowFlags.AlwaysAutoResize) { _pluginInterface = pluginInterface; _questController = questController;