mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-11 08:32:47 +00:00
parent
34fc24e4e0
commit
4abc35a5c4
1 changed files with 1 additions and 1 deletions
|
|
@ -1293,7 +1293,7 @@ fn set_preview_factory(
|
||||||
|
|
||||||
let api = ui.global::<ui::Api>();
|
let api = ui.global::<ui::Api>();
|
||||||
api.set_preview_area(factory);
|
api.set_preview_area(factory);
|
||||||
api.set_resize_to_preferred_size(behavior == LoadBehavior::Load);
|
api.set_resize_to_preferred_size(behavior != LoadBehavior::Reload);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Highlight the element pointed at the offset in the path.
|
/// Highlight the element pointed at the offset in the path.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue