properties: fix expect for ParamSpecFlags

This commit is contained in:
Stéphane Cerveau 2024-01-03 13:08:14 +01:00
parent a6f03db8f6
commit 18458e3465

View file

@ -113,7 +113,7 @@ pub fn property_to_widget<F: Fn(String, String) + 'static>(
let param = param
.clone()
.downcast::<glib::ParamSpecFlags>()
.expect("Should be a ParamSpecEnum");
.expect("Should be a ParamSpecFlags");
let flags = param.flags_class();
for value in flags.values() {
combo.append_text(&format!(