ui: the selection filter follows what the selection holds (#341, #371)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
jyvikoandClaude Opus 5.5 authored and Irakli Kourtis committed 2026-10-15 10:17:28 -04:00
1 parent 2908a77850
commit f9c1c3cb24
2 files changed
+41

No files matched your search

+5
View File
@@ -1264,6 +1264,11 @@ impl ModelApp {
if self.pick.selection.apply(items, mode) {
self.pick.generation = self.pick.generation.wrapping_add(1);
}
// The filter label follows what the selection holds (a seed picked in the browser selects
// its edge whatever the filter was, #341).
if let Some(f) = self.pick.selection.filter() {
self.pick.filter = f;
}
let mut text = format!("Selected: {}", self.pick.selection.summary());
if self.pick.selection.capped() {
text.push_str(&format!(" (at most {} items)", selection::MAX_SELECTION));