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

@@ -3289,7 +3289,7 @@ Additional data:
"codeblockId": "dd28b84b-a5e4-4327-b24f-d7c408f8acfa"
}
```
Status: **loading**
Status: **completed**
</details>
@@ -3297,3 +3297,110 @@ Status: **loading**
---
<tool-use data-tool-type="unknown" data-tool-name="edit_file_v2">
<details>
<summary>Tool use: **edit_file_v2**</summary>
Parameters:
```json
{
"relativeWorkspacePath": "Views/WorkerEditWindow.axaml.cs"
}
```
Additional data:
```json
{
"codeblockId": "1ece3095-7d84-48f1-b0c9-cd1778aa04dc"
}
```
Status: **completed**
</details>
</tool-use>
---
<tool-use data-tool-type="unknown" data-tool-name="edit_file_v2">
<details>
<summary>Tool use: **edit_file_v2**</summary>
Parameters:
```json
{
"relativeWorkspacePath": "Views/WorkerEditWindow.axaml.cs"
}
```
Additional data:
```json
{
"codeblockId": "bd962585-1075-46d3-86e1-3ff33f1d67ed"
}
```
Status: **completed**
</details>
</tool-use>
---
Fixed the same issue in `WorkerEditWindow`. Verifying the build:
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_command_v2">
<details><summary>Tool use: **run_terminal_command_v2** • Run command: dotnet build --no-restore 2>&1 | Select-Object -First 30</summary>
```bash
dotnet build --no-restore 2>&1 | Select-Object -First 30
```
```
UnifiedFarmLauncher -&gt; C:\Users\Nathan\Desktop\UFL\bin\Debug\net8.0\UnifiedFarmLauncher.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.81
```
</details>
</tool-use>
---
Fixed the same issue in `WorkerEditWindow`. It was accessing named controls directly (like `OkButton`, `CancelButton`, etc.) as fields, which caused a `NullReferenceException` and closed the window.
**Changes made:**
- Updated `SetupEventHandlers()` to use `FindControl<T>()` for all button references
- Updated `RemoveDriveButton_Click` and `RemovePathButton_Click` to use `FindControl<T>()` for the ListBox controls
The build succeeded. When you click "Add Worker", the dialog should open and stay open instead of closing immediately. Try it again.
---
_**User**_
This is cool. Flamenco and SheepIt should have universal settings, not per-worker; I don't want to put in user and RenderKey on a per-worker basis.
---
_**Agent (model default, mode Agent)**_
Reviewing the current structure to move Flamenco and SheepIt credentials to global settings:
---