mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-03-11 09:35:45 +00:00
Added **ability to switch between account profiles** [#372](https://github.com/Crunchy-DL/Crunchy-Downloader/issues/372). Added option to **execute a file when the download queue finishes** [#392](https://github.com/Crunchy-DL/Crunchy-Downloader/issues/392). Added **auto history refresh / auto add to queue** [#394](https://github.com/Crunchy-DL/Crunchy-Downloader/issues/394). Changed **font loading** to also include fonts from the local fonts folder that are not available on Crunchyroll [#371](https://github.com/Crunchy-DL/Crunchy-Downloader/issues/371). Updated packages to latest versions Fixed **history not being saved** after it was updated via the calendar Fixed **Downloaded toggle in history** being slow for large seasons
29 lines
No EOL
690 B
C#
29 lines
No EOL
690 B
C#
using System;
|
|
using Avalonia;
|
|
using System.Linq;
|
|
using ReactiveUI.Avalonia;
|
|
|
|
namespace CRD;
|
|
|
|
sealed class Program{
|
|
[STAThread]
|
|
public static void Main(string[] args){
|
|
var isHeadless = args.Contains("--headless");
|
|
|
|
BuildAvaloniaApp(isHeadless).StartWithClassicDesktopLifetime(args);
|
|
}
|
|
|
|
public static AppBuilder BuildAvaloniaApp(bool isHeadless){
|
|
var builder = AppBuilder.Configure<App>()
|
|
.UsePlatformDetect()
|
|
.WithInterFont()
|
|
.LogToTrace()
|
|
.UseReactiveUI(_ => { });
|
|
|
|
if (isHeadless){
|
|
Console.WriteLine("Running in headless mode...");
|
|
}
|
|
|
|
return builder;
|
|
}
|
|
} |