diff --git a/src/SharpClient.App/MauiProgram.cs b/src/SharpClient.App/MauiProgram.cs index 52c9083..c3090ab 100644 --- a/src/SharpClient.App/MauiProgram.cs +++ b/src/SharpClient.App/MauiProgram.cs @@ -123,6 +123,11 @@ public static MauiApp CreateMauiApp() new HistorySearchViewModel( sp.GetRequiredService(), sp.GetRequiredService())); + // Backs the Rules page (triggers/aliases editor). Was registered on the Web host but not + // here, so opening Rules on Android threw "no registered service ... TriggerAliasEditorViewModel". + builder.Services.AddTransient(sp => + new TriggerAliasEditorViewModel( + sp.GetRequiredService())); // ── Session launcher (real telnet) ──────────────────────────────── builder.Services.AddTransient();