@@ -413,14 +413,15 @@ void ScreenSetupPage::build(FormWindow * window)
|
|||||||
if (!layout) return nullptr;
|
if (!layout) return nullptr;
|
||||||
return layout->getFactory();
|
return layout->getFactory();
|
||||||
};
|
};
|
||||||
LayoutChoice::LayoutFactorySetter setLayout = [idx, optionsWindow](const LayoutFactory *factory) {
|
LayoutChoice::LayoutFactorySetter setLayout =
|
||||||
// delete any options potentially accessing
|
[=](const LayoutFactory* factory) {
|
||||||
// the old custom screen
|
// delete any options potentially accessing
|
||||||
optionsWindow->clear();
|
// the old custom screen
|
||||||
createCustomScreen(factory, idx);
|
window->clear();
|
||||||
updateLayoutOptions(optionsWindow, idx);
|
createCustomScreen(factory, idx);
|
||||||
};
|
build(window);
|
||||||
|
};
|
||||||
|
|
||||||
auto layoutChoice = new LayoutChoice(window, layoutSlot, getFactory, setLayout);
|
auto layoutChoice = new LayoutChoice(window, layoutSlot, getFactory, setLayout);
|
||||||
grid.nextLine(layoutChoice->height());
|
grid.nextLine(layoutChoice->height());
|
||||||
|
|
||||||
@@ -477,4 +478,6 @@ void ScreenSetupPage::build(FormWindow * window)
|
|||||||
// fix focus order due to early insertion
|
// fix focus order due to early insertion
|
||||||
FormField::link(button, layoutChoice);
|
FormField::link(button, layoutChoice);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window->adjustInnerHeight();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user