- _preset_check->SetValue (preset);
- _preset_choice->Enable (preset);
- _preset_choice->SetSelection (preset.get_value_or (-1));
+ auto preset = _editor->get().preset ();
+
+ _preset_check->SetValue (static_cast<bool>(preset));
+ _preset_choice->Enable (static_cast<bool>(preset));
+ if (preset) {
+ _preset_choice->SetSelection (preset.get ());
+ } else {
+ _preset_choice->SetSelection (-1);
+ }