add super intelligent save button cuz torch is trash

This commit is contained in:
zznty
2022-10-23 21:27:06 +07:00
parent de7e9e616f
commit d16cdd11a1
4 changed files with 41 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
using System.Windows;
using System.Windows.Controls;
using Torch;
namespace TorchRemote.Plugin;
public partial class ConfigControl : UserControl
{
private readonly Persistent<Config> _persistent;
public ConfigControl(Persistent<Config> persistent)
{
_persistent = persistent;
InitializeComponent();
}
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
_persistent.Save();
}
}