perf: reduce size of DialogPage enum by 1000 bytes

This commit is contained in:
Michael Aaron Murphy 2026-05-01 15:15:59 +02:00 committed by Michael Murphy
parent 72b40aece3
commit cd48e4fa30
3 changed files with 7 additions and 7 deletions

View file

@ -3587,7 +3587,7 @@ impl Tab {
match item_from_path(&path, IconSizes::default()) {
Ok(item) => {
commands.push(Command::Preview(PreviewKind::Custom(
PreviewItem(item),
PreviewItem(Box::new(item)),
)));
}
Err(err) => {