Fix: update price badge display after AI refinement

PriceSuggestedText was not being refreshed when Refine with AI ran,
so the badge still showed the original price even though PriceOverride
had been updated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Peter Foster
2026-04-13 17:55:50 +01:00
parent c02c69aaa6
commit 1bdc8783f9

View File

@@ -241,9 +241,10 @@ public partial class PhotoAnalysisView : UserControl
var (newTitle, newDesc, newPrice, newReasoning) =
await _aiService.RefineWithCorrectionsAsync(title, description, price, corrections);
TitleBox.Text = newTitle;
DescriptionBox.Text = newDesc;
PriceOverride.Value = (double)newPrice;
TitleBox.Text = newTitle;
DescriptionBox.Text = newDesc;
PriceOverride.Value = (double)newPrice;
PriceSuggestedText.Text = newPrice > 0 ? $"£{newPrice:F2}" : "—";
_lastResult.Title = newTitle;
_lastResult.Description = newDesc;