feat(color): add confirmation to 'Add all Trims to subtrims' button (#5374)

This commit is contained in:
philmoz
2024-08-05 10:09:48 +10:00
committed by GitHub
parent 5ad38828fa
commit 3627193e61
@@ -240,7 +240,11 @@ void ModelOutputsPage::build(Window* window)
window->padBottom(PAD_LARGE);
new TextButton(window, {ADD_TRIMS_X, ADD_TRIMS_Y, ADD_TRIMS_W, ADD_TRIMS_H}, STR_ADD_ALL_TRIMS_TO_SUBTRIMS, [=]() {
moveTrimsToOffsets();
new ConfirmDialog(
window, STR_TRIMS2OFFSETS, STR_ADD_ALL_TRIMS_TO_SUBTRIMS,
[=] {
moveTrimsToOffsets();
});
return 0;
});