Show version in quest window

pull/14/head
Liza 2024-07-26 17:17:52 +02:00
parent b044e5181f
commit 0e927fef6f
Signed by: liza
GPG Key ID: 7199F8D727D55F67
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
using System.Numerics; using System;
using System.Numerics;
using Dalamud.Plugin; using Dalamud.Plugin;
using Dalamud.Plugin.Services; using Dalamud.Plugin.Services;
using ImGuiNET; using ImGuiNET;
@ -11,6 +12,7 @@ namespace Questionable.Windows;
internal sealed class QuestWindow : LWindow, IPersistableWindowConfig internal sealed class QuestWindow : LWindow, IPersistableWindowConfig
{ {
private static readonly Version PluginVersion = typeof(QuestionablePlugin).Assembly.GetName().Version!;
private readonly IDalamudPluginInterface _pluginInterface; private readonly IDalamudPluginInterface _pluginInterface;
private readonly QuestController _questController; private readonly QuestController _questController;
@ -33,7 +35,7 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig
CreationUtilsComponent creationUtilsComponent, CreationUtilsComponent creationUtilsComponent,
QuickAccessButtonsComponent quickAccessButtonsComponent, QuickAccessButtonsComponent quickAccessButtonsComponent,
RemainingTasksComponent remainingTasksComponent) RemainingTasksComponent remainingTasksComponent)
: base("Questionable###Questionable", ImGuiWindowFlags.AlwaysAutoResize) : base($"Questionable v{PluginVersion.ToString(2)}###Questionable", ImGuiWindowFlags.AlwaysAutoResize)
{ {
_pluginInterface = pluginInterface; _pluginInterface = pluginInterface;
_questController = questController; _questController = questController;