Panics · P25 Generative: gone choices mark none, overruns peg; seed fields hold seeds through fits, undo and input methods

This commit is contained in:
ZacharyZhang-NY committed 2026-10-07 02:12:07 -04:00
1 parent fb7ee42e3d
commit 68a98198b0
17 files changed
+451 -123

No files matched your search

+3 -4
View File
@@ -39,10 +39,9 @@ impl StylePresetPicker {
) -> Self {
let (presets, selected): (Vec<StylePreset>, SharedString) =
(presets.into_iter().collect(), selected.into());
assert!(
presets.iter().any(|preset| preset.key == selected),
"style {selected} is not among the presets"
);
if !presets.iter().any(|preset| preset.key == selected) {
log::error!("style presets: {selected} is not among the presets; none selected");
}
Self {
id: id.into(),
presets,