Some checks failed
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Failing after 9s
35 lines
763 B
C#
35 lines
763 B
C#
using System.Windows;
|
|
using ChrisKaczor.Wpf.Application;
|
|
|
|
namespace HardwareMonitorStatusWindow.StatusWindow.SettingsWindow;
|
|
|
|
public partial class GeneralSettingsPanel
|
|
{
|
|
public GeneralSettingsPanel()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public override string CategoryName => StatusWindow.Resources.optionCategoryGeneral;
|
|
|
|
public override void LoadPanel(Window parentWindow)
|
|
{
|
|
base.LoadPanel(parentWindow);
|
|
|
|
MarkLoaded();
|
|
}
|
|
|
|
private void OnSaveSettings(object sender, RoutedEventArgs e)
|
|
{
|
|
SaveSettings();
|
|
}
|
|
|
|
private void SaveSettings()
|
|
{
|
|
if (!HasLoaded) return;
|
|
|
|
Settings.Default.Save();
|
|
|
|
Application.Current.SetStartWithWindows(Settings.Default.AutoStart);
|
|
}
|
|
} |