mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Match current selection event API in File Info
This commit is contained in:
1 parent
dbac436803
commit
ea5f6079c4
1 file changed
+1
-1
@@ -265,7 +265,7 @@ impl StackDialog for FileInfoDialog {
|
||||
}
|
||||
});
|
||||
for event in list.events {
|
||||
if let CollectionEvent::Selection(SelectionChange::Set(keys)) = event
|
||||
if let CollectionEvent::Selection { change: SelectionChange::Set(keys), .. } = event
|
||||
&& let Some(category) = keys.iter().find_map(|key| CATEGORIES.iter().find(|category| category.key == key.as_str()))
|
||||
&& category.key != selected
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user