diff --git a/StabilityMatrix.Avalonia/DesignData/DesignData.cs b/StabilityMatrix.Avalonia/DesignData/DesignData.cs index 02c14878..3137f0cc 100644 --- a/StabilityMatrix.Avalonia/DesignData/DesignData.cs +++ b/StabilityMatrix.Avalonia/DesignData/DesignData.cs @@ -81,7 +81,8 @@ public static class DesignData .AddSingleton() .AddSingleton() .AddSingleton() - .AddSingleton(); + .AddSingleton() + .AddSingleton(); // Placeholder services that nobody should need during design time services diff --git a/StabilityMatrix.Avalonia/DesignData/MockDiscordRichPresenceService.cs b/StabilityMatrix.Avalonia/DesignData/MockDiscordRichPresenceService.cs new file mode 100644 index 00000000..79851cd7 --- /dev/null +++ b/StabilityMatrix.Avalonia/DesignData/MockDiscordRichPresenceService.cs @@ -0,0 +1,18 @@ +using System; +using StabilityMatrix.Avalonia.Services; + +namespace StabilityMatrix.Avalonia.DesignData; + +public class MockDiscordRichPresenceService : IDiscordRichPresenceService +{ + /// + public void Dispose() + { + GC.SuppressFinalize(this); + } + + /// + public void UpdateState() + { + } +}