fix worker list not refreshing
This commit is contained in:
@@ -7193,3 +7193,199 @@ Adding a show/hide toggle button next to the render key field. Updating the View
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
Adding a show/hide toggle button for the render key:
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<tool-use data-tool-type="unknown" data-tool-name="edit_file_v2">
|
||||||
|
<details>
|
||||||
|
<summary>Tool use: **edit_file_v2**</summary>
|
||||||
|
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"relativeWorkspacePath": "ViewModels/GlobalSettingsViewModel.cs"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Additional data:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"codeblockId": "d6e69e42-6315-499a-b32f-0a18740bfde5"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
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": "ViewModels/GlobalSettingsViewModel.cs"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Additional data:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"codeblockId": "5f97b8c4-3317-4377-8136-8cde61ce0df3"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
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/GlobalSettingsWindow.axaml"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Additional data:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"codeblockId": "3c228bfe-f52a-417e-a8d4-44b179662a8f"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
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/GlobalSettingsWindow.axaml.cs"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Additional data:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"codeblockId": "d78620ba-7f68-40f0-b699-77bedad26e1f"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
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/GlobalSettingsWindow.axaml.cs"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Additional data:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"codeblockId": "3962a0a5-a3d7-4104-9dfa-0c39201970c9"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Status: **completed**
|
||||||
|
|
||||||
|
|
||||||
|
</details>
|
||||||
|
</tool-use>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<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 50</summary>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
dotnet build --no-restore 2>&1 | Select-Object -First 50
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
UnifiedFarmLauncher -> C:\Users\Nathan\Desktop\UFL\bin\Debug\net8.0\UnifiedFarmLauncher.dll
|
||||||
|
|
||||||
|
Build succeeded.
|
||||||
|
0 Warning(s)
|
||||||
|
0 Error(s)
|
||||||
|
|
||||||
|
Time Elapsed 00:00:00.86
|
||||||
|
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
</tool-use>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
Adding the missing using statement:
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<tool-use data-tool-type="read" data-tool-name="read_file_v2">
|
||||||
|
<details><summary>Tool use: **read_file_v2** • Read file: Views/GlobalSettingsWindow.axaml.cs</summary>
|
||||||
|
|
||||||
|
</details>
|
||||||
|
</tool-use>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
Build succeeded. Added a show/hide toggle button next to the render key field.
|
||||||
|
|
||||||
|
**Changes made:**
|
||||||
|
|
||||||
|
1. **ViewModel**: Added `IsRenderKeyVisible` to track visibility state
|
||||||
|
2. **UI**: Wrapped the render key TextBox in a Grid with a toggle button (eye icon) on the right
|
||||||
|
3. **Event handler**: Toggles the `PasswordChar` between `'*'` (hidden) and `'\0'` (visible), and updates the button icon between 👁 (show) and 🙈 (hide)
|
||||||
|
|
||||||
|
Clicking the button toggles between showing asterisks and showing the actual render key text. The button icon indicates the current state.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
_**User**_
|
||||||
|
|
||||||
|
When I finish adding the worker, it doesn't appear in the list until I close and reopen.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ namespace UnifiedFarmLauncher.ViewModels
|
|||||||
|
|
||||||
public void LoadWorkers()
|
public void LoadWorkers()
|
||||||
{
|
{
|
||||||
|
_configService.Reload();
|
||||||
var config = _configService.Load();
|
var config = _configService.Load();
|
||||||
Workers.Clear();
|
Workers.Clear();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user