From 1bdc8783f99ee0cf832caaa6fe3f90815a303b3f Mon Sep 17 00:00:00 2001 From: Peter Foster Date: Mon, 13 Apr 2026 17:55:50 +0100 Subject: [PATCH] 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 --- EbayListingTool/Views/PhotoAnalysisView.xaml.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/EbayListingTool/Views/PhotoAnalysisView.xaml.cs b/EbayListingTool/Views/PhotoAnalysisView.xaml.cs index ee947a4..5c26744 100644 --- a/EbayListingTool/Views/PhotoAnalysisView.xaml.cs +++ b/EbayListingTool/Views/PhotoAnalysisView.xaml.cs @@ -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;