2024-11-29 15:14:56 +00:00
|
|
|
|
using Avalonia;
|
|
|
|
|
using Avalonia.ReactiveUI;
|
2025-04-30 01:13:44 +00:00
|
|
|
|
using presence_client;
|
|
|
|
|
using presence_client.ApiClients;
|
2024-11-29 15:14:56 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Presence.Desktop
|
|
|
|
|
{
|
|
|
|
|
internal sealed class Program
|
|
|
|
|
{
|
|
|
|
|
// Initialization code. Don't use any Avalonia, third-party APIs or any
|
|
|
|
|
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
|
|
|
|
|
// yet and stuff might break.
|
|
|
|
|
[STAThread]
|
|
|
|
|
public static void Main(string[] args) => BuildAvaloniaApp()
|
|
|
|
|
.StartWithClassicDesktopLifetime(args);
|
|
|
|
|
|
|
|
|
|
// Avalonia configuration, don't remove; also used by visual designer.
|
|
|
|
|
public static AppBuilder BuildAvaloniaApp()
|
|
|
|
|
=> AppBuilder.Configure<App>()
|
|
|
|
|
.UsePlatformDetect()
|
|
|
|
|
.WithInterFont()
|
|
|
|
|
.LogToTrace()
|
|
|
|
|
.UseReactiveUI();
|
|
|
|
|
}
|
2025-04-30 01:13:44 +00:00
|
|
|
|
}
|