mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 22:35:26 +00:00
Place: say what a dropped batch does at a multi-page PDF
File › Place now carries on after the PDF's options; a drop still cancels the rest.
This commit is contained in:
1 parent
3111d4086a
commit
a66355b6ca
1 file changed
+2
-1
@@ -295,7 +295,8 @@ impl DesignApp {
|
||||
/// cursor, each run of them where it came in the order, after any images it already holds,
|
||||
/// whatever is under the pointer: click to place them one by one, drag with the arrow keys for
|
||||
/// a grid. The rest of the drop is cancelled once a file opens a dialog (a multi-page PDF's
|
||||
/// Import Options, an alert), as File › Place with several chosen is.
|
||||
/// Import Options, an alert): unlike File › Place with several chosen, nothing waits for a
|
||||
/// PDF's options to be confirmed.
|
||||
pub fn open_dropped_batch(&mut self, drops: Vec<(String, Option<egui::Pos2>)>) {
|
||||
let several = drops.iter().filter(|(p, _)| is_cursor_image(p)).count() > 1;
|
||||
// Only the first graphic of a drop fills the frame under the pointer.
|
||||
|
||||
Reference in new issue
Block a user