Skip to content

feat: configurable default action on the print button (#11187)#11324

Open
BenJule wants to merge 1 commit into
bambulab:masterfrom
BenJule:feat/11187-default-print-action
Open

feat: configurable default action on the print button (#11187)#11324
BenJule wants to merge 1 commit into
bambulab:masterfrom
BenJule:feat/11187-default-print-action

Conversation

@BenJule

@BenJule BenJule commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #11187. Adds a Default print action preference so users who always use the same action (e.g. "Send all") don't have to pick it from the print button's dropdown every time.

A new combobox on the General preferences page lets you choose the action that's pre-selected on the print button:

  • Print plate (default — unchanged behaviour)
  • Print all
  • Send
  • Send all

On startup the print button initialises its label and selection (m_print_select) from this setting. The dropdown still works exactly as before, so users can switch per session; this only changes which option is selected by default.

Implementation

  • AppConfig: new default_print_action key, default "print_plate" (so existing users see no change).
  • MainFrame: reads the setting when building the print button and sets both the label and m_print_select accordingly (maps to ePrintAll / eSendToPrinter / eSendToPrinterAll).
  • Preferences: the combobox.

Test plan

  • Pure preference + initial-selection change; no change to the print/send execution paths.
  • Default value reproduces the current "Print plate" default exactly.
  • I don't have a GUI build environment here, so I traced the wiring through the code rather than capturing a run — happy to adjust labels/placement to your conventions.
Add a 'Default print action' preference (Print plate / Print all / Send /
Send all) so users who always use a particular action don't have to pick it
from the dropdown every time. The print button initialises its label and
selection from this setting; the dropdown still lets users switch per session.
Defaults to 'Print plate', so existing behaviour is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant