From 38105c2cfbc599b5d09097b6bb482b5e53a4e908 Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 17 Dec 2025 16:25:49 -0700 Subject: [PATCH] fix worker list not refreshing --- .../2025-12-17_23-08Z-build-status-query.md | 196 ++++++++++++++++++ ViewModels/MainWindowViewModel.cs | 1 + 2 files changed, 197 insertions(+) diff --git a/.specstory/history/2025-12-17_23-08Z-build-status-query.md b/.specstory/history/2025-12-17_23-08Z-build-status-query.md index 96636ad..8d43cab 100644 --- a/.specstory/history/2025-12-17_23-08Z-build-status-query.md +++ b/.specstory/history/2025-12-17_23-08Z-build-status-query.md @@ -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: **edit_file_v2** + + +Parameters: + +```json +{ + "relativeWorkspacePath": "ViewModels/GlobalSettingsViewModel.cs" +} +``` +Additional data: + +```json +{ + "codeblockId": "d6e69e42-6315-499a-b32f-0a18740bfde5" +} +``` +Status: **completed** + + +
+
+ +--- + + +
+Tool use: **edit_file_v2** + + +Parameters: + +```json +{ + "relativeWorkspacePath": "ViewModels/GlobalSettingsViewModel.cs" +} +``` +Additional data: + +```json +{ + "codeblockId": "5f97b8c4-3317-4377-8136-8cde61ce0df3" +} +``` +Status: **completed** + + +
+
+ +--- + + +
+Tool use: **edit_file_v2** + + +Parameters: + +```json +{ + "relativeWorkspacePath": "Views/GlobalSettingsWindow.axaml" +} +``` +Additional data: + +```json +{ + "codeblockId": "3c228bfe-f52a-417e-a8d4-44b179662a8f" +} +``` +Status: **completed** + + +
+
+ +--- + + +
+Tool use: **edit_file_v2** + + +Parameters: + +```json +{ + "relativeWorkspacePath": "Views/GlobalSettingsWindow.axaml.cs" +} +``` +Additional data: + +```json +{ + "codeblockId": "d78620ba-7f68-40f0-b699-77bedad26e1f" +} +``` +Status: **completed** + + +
+
+ +--- + + +
+Tool use: **edit_file_v2** + + +Parameters: + +```json +{ + "relativeWorkspacePath": "Views/GlobalSettingsWindow.axaml.cs" +} +``` +Additional data: + +```json +{ + "codeblockId": "3962a0a5-a3d7-4104-9dfa-0c39201970c9" +} +``` +Status: **completed** + + +
+
+ +--- + + +
Tool use: **run_terminal_command_v2** • Run command: dotnet build --no-restore 2>&1 | Select-Object -First 50 + +```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 + +``` +
+
+ +--- + + +Adding the missing using statement: + + +--- + + +
Tool use: **read_file_v2** • Read file: Views/GlobalSettingsWindow.axaml.cs + +
+
+ +--- + + +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. + +--- + diff --git a/ViewModels/MainWindowViewModel.cs b/ViewModels/MainWindowViewModel.cs index e4e18d2..ab12bd3 100644 --- a/ViewModels/MainWindowViewModel.cs +++ b/ViewModels/MainWindowViewModel.cs @@ -54,6 +54,7 @@ namespace UnifiedFarmLauncher.ViewModels public void LoadWorkers() { + _configService.Reload(); var config = _configService.Load(); Workers.Clear();