mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
PR #14321: Include Artboard Name shows without Export Options
A form section's body runs to the next section and hides with it. Below the Export Options section the Include Artboard Name checkbox showed only while Export Options was ticked; both checkboxes now come before either section. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
d44259eba2
commit
b689784b4b
2 files changed
+12
-7
No files matched your search
@@ -1300,11 +1300,11 @@ mod file_types_tests;
|
||||
#[path = "artboard_cmds/first_board_background_tests.rs"]
|
||||
mod first_board_background_tests;
|
||||
#[cfg(test)]
|
||||
#[path = "artboard_cmds/include_name_tests.rs"]
|
||||
mod include_name_tests;
|
||||
#[cfg(test)]
|
||||
#[path = "artboard_cmds/from_group_reset_props_tests.rs"]
|
||||
mod from_group_reset_props_tests;
|
||||
#[cfg(test)]
|
||||
#[path = "artboard_cmds/include_name_tests.rs"]
|
||||
mod include_name_tests;
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "artboard_cmds/from_layers_history_name_tests.rs"]
|
||||
|
||||
@@ -322,10 +322,15 @@ pub(super) fn params_for(app: &mut PhotocraftApp, id: &str) -> Option<(Vec<Param
|
||||
// The reference application's list, PSD chosen when the dialog opens (#13635).
|
||||
choice("format", tl!("File Type"), artboard_formats(), "psd"),
|
||||
];
|
||||
// Export Options and each file type's settings (#13636); the JPEG quality is one of them.
|
||||
rows.extend(artboard_export_options::rows());
|
||||
// Include Artboard Name and its Name Options (#13637).
|
||||
rows.extend(artboard_name_options::rows(&crate::type_tool::families()));
|
||||
// Export Options and each file type's settings (#13636; the JPEG quality is one of them), then Include Artboard
|
||||
// Name and its Name Options (#13637). A section's body runs to the next section and hides with it, so both
|
||||
// checkboxes come before the Options section: after it, Include Artboard Name would show only with Export Options.
|
||||
let mut export = artboard_export_options::rows().into_iter();
|
||||
let mut name = artboard_name_options::rows(&crate::type_tool::families()).into_iter();
|
||||
rows.extend(export.next());
|
||||
rows.extend(name.next());
|
||||
rows.extend(export);
|
||||
rows.extend(name);
|
||||
plain(rows)
|
||||
}
|
||||
"file.export.artboardsToPdf" => {
|
||||
|
||||
Reference in new issue
Block a user