feat: configurable default action on the print button (#11187)#11324
Open
BenJule wants to merge 1 commit into
Open
feat: configurable default action on the print button (#11187)#11324BenJule wants to merge 1 commit into
BenJule wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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: newdefault_print_actionkey, default"print_plate"(so existing users see no change).MainFrame: reads the setting when building the print button and sets both the label andm_print_selectaccordingly (maps toePrintAll/eSendToPrinter/eSendToPrinterAll).Preferences: the combobox.Test plan