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:
@@ -241,9 +241,10 @@ public partial class PhotoAnalysisView : UserControl
|
|||||||
var (newTitle, newDesc, newPrice, newReasoning) =
|
var (newTitle, newDesc, newPrice, newReasoning) =
|
||||||
await _aiService.RefineWithCorrectionsAsync(title, description, price, corrections);
|
await _aiService.RefineWithCorrectionsAsync(title, description, price, corrections);
|
||||||
|
|
||||||
TitleBox.Text = newTitle;
|
TitleBox.Text = newTitle;
|
||||||
DescriptionBox.Text = newDesc;
|
DescriptionBox.Text = newDesc;
|
||||||
PriceOverride.Value = (double)newPrice;
|
PriceOverride.Value = (double)newPrice;
|
||||||
|
PriceSuggestedText.Text = newPrice > 0 ? $"£{newPrice:F2}" : "—";
|
||||||
|
|
||||||
_lastResult.Title = newTitle;
|
_lastResult.Title = newTitle;
|
||||||
_lastResult.Description = newDesc;
|
_lastResult.Description = newDesc;
|
||||||
|
|||||||
Reference in New Issue
Block a user