move SheepIt settings to global settings

This commit is contained in:
Nathan
2025-12-17 16:19:08 -07:00
parent 03b3ae58f4
commit 202ad49f48
11 changed files with 268 additions and 34 deletions

View File

@@ -39,6 +39,7 @@ namespace UnifiedFarmLauncher.Views
this.FindControl<Button>("StartWorkerButton")!.Click += StartWorkerButton_Click;
this.FindControl<Button>("StopWorkerButton")!.Click += StopWorkerButton_Click;
this.FindControl<Button>("AttachWorkerButton")!.Click += AttachWorkerButton_Click;
this.FindControl<Button>("SettingsButton")!.Click += SettingsButton_Click;
this.FindControl<TabControl>("WorkerTypeTabs")!.SelectionChanged += WorkerTypeTabs_SelectionChanged;
this.FindControl<DataGrid>("WorkersGrid")!.SelectionChanged += WorkersGrid_SelectionChanged;
}
@@ -199,6 +200,12 @@ namespace UnifiedFarmLauncher.Views
}
}
private async void SettingsButton_Click(object? sender, RoutedEventArgs e)
{
var dialog = new GlobalSettingsWindow();
await dialog.ShowDialogAsync(this);
}
private void WorkersGrid_SelectionChanged(object? sender, SelectionChangedEventArgs e)
{
if (DataContext is MainWindowViewModel vm)