mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 09:08:11 +00:00
pdf-print-ocr-w1: declare pressed before the section that borrows it (compile)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e996936fea
commit
545014b74e
@@ -265,11 +265,12 @@ impl PrintSection {
|
||||
|
||||
/// Shows the section with its rows over `values`. Its rows' requests and a title button's press go into `requests`.
|
||||
fn show(&self, ui: &mut Ui, at: usize, values: &mut DialogFields, requests: &mut HostRequests) {
|
||||
// Declared before `section`, whose controls closure borrows it.
|
||||
let mut pressed = None;
|
||||
let mut section = match self.folded {
|
||||
Some(open) => Section::new(self.title.clone()).initially_open(open),
|
||||
None => Section::fixed(self.title.clone()),
|
||||
};
|
||||
let mut pressed = None;
|
||||
if !self.buttons.is_empty() {
|
||||
let buttons = &self.buttons;
|
||||
let pressed = &mut pressed;
|
||||
|
||||
Reference in New Issue
Block a user