Crunchy-Downloader/CRD/Views/SettingsPageView.axaml.cs

23 lines
534 B
C#
Raw Normal View History

2024-05-04 15:35:32 +00:00
using Avalonia;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Interactivity;
2024-05-04 15:35:32 +00:00
using Avalonia.Markup.Xaml;
using CRD.Downloader;
using CRD.Utils.Sonarr;
2024-05-04 15:35:32 +00:00
using CRD.ViewModels;
namespace CRD.Views;
public partial class SettingsPageView : UserControl{
public SettingsPageView(){
InitializeComponent();
}
private void OnUnloaded(object? sender, RoutedEventArgs e){
if (DataContext is SettingsPageViewModel viewModel){
Crunchyroll.Instance.RefreshSonarr();
}
}
2024-05-04 15:35:32 +00:00
}