Compare commits
No commits in common. "master" and "v5.6" have entirely different histories.
|
@ -1,6 +1,6 @@
|
||||||
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
|
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>5.7</Version>
|
<Version>5.6</Version>
|
||||||
<OutputPath>dist</OutputPath>
|
<OutputPath>dist</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ internal sealed class InventoryTab : ITab
|
||||||
private readonly IPluginLog _pluginLog;
|
private readonly IPluginLog _pluginLog;
|
||||||
|
|
||||||
private List<TreeNode>? _listAsTrees;
|
private List<TreeNode>? _listAsTrees;
|
||||||
private DateTime? _lastUpdate;
|
|
||||||
|
|
||||||
public InventoryTab(Configuration configuration, AllaganToolsIpc allaganToolsIpc, GameCache gameCache,
|
public InventoryTab(Configuration configuration, AllaganToolsIpc allaganToolsIpc, GameCache gameCache,
|
||||||
IPluginLog pluginLog)
|
IPluginLog pluginLog)
|
||||||
|
@ -39,7 +38,6 @@ internal sealed class InventoryTab : ITab
|
||||||
if (!tab)
|
if (!tab)
|
||||||
{
|
{
|
||||||
_listAsTrees = null;
|
_listAsTrees = null;
|
||||||
_lastUpdate = null;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,16 +47,6 @@ internal sealed class InventoryTab : ITab
|
||||||
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Redo, "Refresh"))
|
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Redo, "Refresh"))
|
||||||
RefreshInventory();
|
RefreshInventory();
|
||||||
|
|
||||||
if (_lastUpdate != null)
|
|
||||||
{
|
|
||||||
string text = $"Last Update: {_lastUpdate:t}";
|
|
||||||
ImGui.SameLine();
|
|
||||||
|
|
||||||
ImGui.SameLine(ImGui.GetContentRegionAvail().X - ImGui.CalcTextSize(text).X + ImGui.GetCursorPosX());
|
|
||||||
ImGui.AlignTextToFramePadding();
|
|
||||||
ImGui.TextColored(ImGuiColors.DalamudGrey, text);
|
|
||||||
}
|
|
||||||
|
|
||||||
ImGui.Separator();
|
ImGui.Separator();
|
||||||
|
|
||||||
if (_listAsTrees == null || _listAsTrees.Count == 0)
|
if (_listAsTrees == null || _listAsTrees.Count == 0)
|
||||||
|
@ -179,7 +167,6 @@ internal sealed class InventoryTab : ITab
|
||||||
}
|
}
|
||||||
|
|
||||||
_listAsTrees = listAsTrees;
|
_listAsTrees = listAsTrees;
|
||||||
_lastUpdate = DateTime.Now;
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue