add super intelligent save button cuz torch is trash
This commit is contained in:
21
TorchRemote.Plugin/ConfigControl.xaml.cs
Normal file
21
TorchRemote.Plugin/ConfigControl.xaml.cs
Normal 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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user