From c986b4000f3fdb5d39aecf9378d4385b38b439ef Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Thu, 22 Oct 2026 14:06:43 +0200 Subject: [PATCH] Display layout: keep the overlay on Reset Reset is about size, position and aspect. The overlay is a separate choice. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QGBg32EFPsTXjAFu7dnTcz --- UI/DisplayLayoutScreen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/DisplayLayoutScreen.cpp b/UI/DisplayLayoutScreen.cpp index 40423197e6..259cb6cd6d 100644 --- a/UI/DisplayLayoutScreen.cpp +++ b/UI/DisplayLayoutScreen.cpp @@ -329,7 +329,10 @@ void DisplayLayoutScreen::CreateViews() { Choice *center = new Choice(di->T("Reset")); center->OnClick.Add([this, &config, portrait](UI::EventParams &) { // Hm, not really ideal to have to use strings here. + // The overlay is a choice of its own, not part of the size/position, so keep it. + const std::string overlay = config.sOverlay; config.ResetToDefault(portrait ? "DisplayLayout.Portrait" : "DisplayLayout.Landscape"); + config.sOverlay = overlay; // Which checkboxes are shown depends on the rotation. RecreateViews(); });