Crunchy-Downloader/CRD/Views/HistoryPageView.axaml.cs
Elwador 5b33d2336c Add - Added **retry** for license key requests
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**
2025-06-17 18:56:24 +02:00

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;
}
}
}