Files
FeedCenter/Application/Options/UpdateOptionsPanel.xaml.cs
Chris Kaczor 636c7f9b2a Merge branch 'main' into prerelease
# Conflicts:
#	Application/FeedCenter.csproj
#	Application/Properties/Resources.resx
2025-09-25 12:53:39 -04:00

32 lines
806 B
C#

using ChrisKaczor.ApplicationUpdate;
using FeedCenter.Properties;
using System.Windows;
namespace FeedCenter.Options;
public partial class UpdateOptionsPanel
{
public UpdateOptionsPanel(Window parentWindow, FeedCenterEntities entities) : base(parentWindow, entities)
{
InitializeComponent();
}
public override string CategoryName => Properties.Resources.optionCategoryUpdate;
private void HandleCheckVersionNowButtonClick(object sender, RoutedEventArgs e)
{
UpdateCheck.DisplayUpdateInformation(true, Settings.Default.IncludePrerelease);
}
private void OnSaveSettings(object sender, RoutedEventArgs e)
{
SaveSettings();
}
private void SaveSettings()
{
if (!HasLoaded) return;
Settings.Default.Save();
}
}