From 562d066c0ef19253cca056146ada280121313955 Mon Sep 17 00:00:00 2001 From: Jasper van Loenen Date: Wed, 28 Oct 2026 18:07:52 +0000 Subject: [PATCH] Fix endless redraw of settings window if setting has empty row, caused by storing setting in row of previous setting (#8399) --- crates/ui-egui/src/prefs_search.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ui-egui/src/prefs_search.rs b/crates/ui-egui/src/prefs_search.rs index 77bc49243..63e53ec1f 100644 --- a/crates/ui-egui/src/prefs_search.rs +++ b/crates/ui-egui/src/prefs_search.rs @@ -258,6 +258,7 @@ pub(crate) fn begin_page(ui: &Ui, index: usize, label: &str) { state.page = label.to_string(); state.page_shown = false; state.section.clear(); + state.key.clear(); state.section_matches = false; state.section_shown.clear(); state.heading_open = false; @@ -270,6 +271,8 @@ pub(crate) fn begin_section(ui: &Ui, title: &str) { state.section = title.to_string(); state.section_matches = matches || state.force > 0; state.section_shown.clear(); + // A dropdown with no row of its own must not store its value under the last row's key. + state.key.clear(); state.heading_open = false; }); }