mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-01-11 20:10:26 +00:00
Add - Added **hardware acceleration options** for sync timings Add - Added an **icon for episodes removed from Crunchyroll** or moved to a different season Add - Added **highlighting for selected dubs/subs** in history Add - Added **highlighting of episode titles** when all selected dubs/subs are available Add - Added option to **set history series to inactive** Add - Added **filter for Active and Inactive** series in history Add - Added **download retry options** to settings, making retry variables editable Chg - Changed **Sonarr missing filter** to respect the "Skip Unmonitored" setting Chg - Changed to **show an error** if an episode wasn't added to the queue Chg - Changed to show **dates for episodes** in the history Chg - Changed **sync timings algorithm** to improve overall performance Chg - Changed **sync timings algorithm** to more accurately synchronize dubs Chg - Changed **series/season refresh messages** to indicate failure or success more clearly Chg - Changed **error display frequency** to reduce repeated popups for the same message Fix - Fixed **movie detection** to properly verify if the ID corresponds to a movie Fix - Fixed **long option hiding remove buttons** for FFmpeg and MKVMerge additional options Fix - Fixed **toast message timer** not updating correctly Fix - Fixed **path length error** Fix - Fixed a **rare crash when navigating history**
39 lines
No EOL
1 KiB
C#
39 lines
No EOL
1 KiB
C#
using System;
|
|
using Avalonia;
|
|
using Avalonia.Controls.ApplicationLifetimes;
|
|
using Avalonia.Markup.Xaml;
|
|
using CRD.ViewModels;
|
|
using MainWindow = CRD.Views.MainWindow;
|
|
using System.Linq;
|
|
using CRD.Downloader;
|
|
|
|
namespace CRD;
|
|
|
|
public partial class App : Application{
|
|
public override void Initialize(){
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
public override void OnFrameworkInitializationCompleted(){
|
|
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop){
|
|
var isHeadless = Environment.GetCommandLineArgs().Contains("--headless");
|
|
|
|
var manager = ProgramManager.Instance;
|
|
|
|
if (!isHeadless){
|
|
desktop.MainWindow = new MainWindow{
|
|
DataContext = new MainWindowViewModel(manager),
|
|
};
|
|
|
|
desktop.MainWindow.Opened += (_, _) => { manager.SetBackgroundImage(); };
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
base.OnFrameworkInitializationCompleted();
|
|
}
|
|
|
|
|
|
} |