bloxstrap/Bloxstrap/UI/ViewModels/Settings/MainWindowViewModel.cs
pizzaboxer 776dbc4097
Draft: new installer system
the beginning of a long arduous cleanup of two years of debt
2024-08-10 13:08:04 +01:00

23 lines
552 B
C#

using System.Windows.Input;
using CommunityToolkit.Mvvm.Input;
namespace Bloxstrap.UI.ViewModels.Settings
{
public class MainWindowViewModel : NotifyPropertyChangedViewModel
{
public ICommand SaveSettingsCommand => new RelayCommand(SaveSettings);
public EventHandler? RequestSaveNoticeEvent;
private void SaveSettings()
{
App.Settings.Save();
App.State.Save();
App.FastFlags.Save();
RequestSaveNoticeEvent?.Invoke(this, new EventArgs());
}
}
}