show current version and hash in new ui footer

This commit is contained in:
LukeFZ
2025-07-29 18:56:49 +02:00
parent 5d92ceb2f3
commit 62a27ee47f
7 changed files with 52 additions and 8 deletions

View File

@@ -4,21 +4,23 @@ namespace Il2CppInspector.Redux.GUI;
internal class Il2CppHub : Hub
{
public UiContext State
private const string ContextKey = "context";
private UiContext State
{
get
{
if (!Context.Items.TryGetValue("context", out var context)
if (!Context.Items.TryGetValue(ContextKey, out var context)
|| context is not UiContext ctx)
{
Context.Items["context"] = ctx = new UiContext();
Context.Items[ContextKey] = ctx = new UiContext();
}
return ctx;
}
}
public UiClient Client => new(Clients.Caller);
private UiClient Client => new(Clients.Caller);
public async Task OnUiLaunched()
{