diff --git a/src/ui/windows/market_tab.cpp b/src/ui/windows/market_tab.cpp index ed70044..ce90b55 100644 --- a/src/ui/windows/market_tab.cpp +++ b/src/ui/windows/market_tab.cpp @@ -1170,11 +1170,10 @@ static void RenderPortfolioEditor(App* app) if (!popupOpen && !ImGui::IsWindowAppearing() && ImGui::IsMouseClicked(ImGuiMouseButton_Left) && !ImGui::IsMouseHoveringRect(cardMin, cardMax)) s_portfolio_editor_open = false; - // Commit named edits on any close path (Esc / outside-click / Close); unnamed drafts are dropped. - // Also invalidate the acrylic capture so the background (not the last live capture) is re-captured - // for the other glass panels once the overlay is gone, and arm a fresh capture for the next open. + // Esc / outside-click discard uncommitted edits (only the Close button above commits explicitly). + // Invalidate the acrylic capture so the background (not the last live capture) is re-captured for + // the other glass panels once the overlay is gone, and arm a fresh capture for the next open. if (!s_portfolio_editor_open) { - commitIfNeeded(); effects::ImGuiAcrylic::InvalidateCapture(); s_pf_was_open = false; }