mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-01-11 20:10:26 +00:00
Add - Added **Sonarr season/episode numbers** to the history view Add - Added option to **match episodes to Sonarr episodes** to correct mismatches Add - Added **button to rematch all Sonarr episodes** Add - Added an **optional secondary endpoint** Chg - Changed **changelog heading sizes** Chg - Changed Sonarr matching to only process **new or unmatched episodes** Chg - Changed logic to **request audio license keys only when needed** Fix - Fixed **Sonarr series manual matching dialog**
26 lines
No EOL
739 B
C#
26 lines
No EOL
739 B
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using CRD.ViewModels;
|
|
|
|
namespace CRD.Views;
|
|
|
|
public partial class HistoryPageView : UserControl{
|
|
public HistoryPageView(){
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void OnUnloaded(object? sender, RoutedEventArgs e){
|
|
|
|
if (DataContext is HistoryPageViewModel viewModel){
|
|
viewModel.LastScrollOffset = SeriesListBox.Scroll?.Offset ?? Vector.Zero;
|
|
}
|
|
|
|
}
|
|
|
|
private void Control_OnLoaded(object? sender, RoutedEventArgs e){
|
|
if (DataContext is HistoryPageViewModel viewModel){
|
|
if (SeriesListBox.Scroll != null) SeriesListBox.Scroll.Offset = viewModel.LastScrollOffset;
|
|
}
|
|
}
|
|
} |