Skip to content

Comments

Merge Main into dev#2

Merged
danrhodes merged 14 commits intodevfrom
main
Dec 31, 2025
Merged

Merge Main into dev#2
danrhodes merged 14 commits intodevfrom
main

Conversation

@danrhodes
Copy link
Owner

No description provided.

danrhodes and others added 14 commits December 5, 2025 20:27
Introduces a new configuration setting 'EditorRecopyToClipboardOnSave' that, when enabled, automatically copies the image to the clipboard upon saving from the editor. Updates the settings UI to allow users to toggle this feature.
Replaces the OutputFileCopyPathToClipboard and EditorRecopyToClipboardOnSave boolean settings with a unified OutputFilePostSaveBehavior enum. Updates configuration migration, UI, and logic to support new options for post-save actions. Improves flexibility and clarity for post-save clipboard operations.
Updated the 'settings_postsavebehavior' resource in the English language file to remove the trailing colon for consistency with other labels.
Moved migration of OutputFileCopyPathToClipboard from PreCheckValue to AfterLoad for improved clarity and maintainability. Updated CoreConfiguration to handle migration and cleanup of legacy property, and removed redundant comments in SettingsForm.
Introduces OutputFilePostSaveBehaviorMigrated to track migration from the old OutputFileCopyPathToClipboard setting to the new PostSaveBehavior enum, ensuring migration logic only runs once.
Removed the OutputFilePostSaveBehaviorMigrated property and simplified the migration logic for OutputFileCopyPathToClipboard. Migration now only checks for the existence of the old property, streamlining configuration management.
Moved clipboard handling for post-save actions out of ImageIO.Save and into destination classes. This improves separation of concerns and allows more flexible handling of user-configured post-save behaviors.
Updated FileDestination and FileWithDialogDestination to pass the surface object directly to ClipboardHelper.SetClipboardData instead of calling GetBitmapForExport. This may allow ClipboardHelper to handle different surface types or formats more flexibly.
Co-authored-by: Christian Schulz <Chris@schocktools.de>
Co-authored-by: Christian Schulz <Chris@schocktools.de>
Co-authored-by: Christian Schulz <Chris@schocktools.de>
Eliminated unnecessary using directive and static field for CoreConfiguration in ImageEditorForm.cs to clean up unused code.
Co-authored-by: Christian Schulz <Chris@schocktools.de>
@danrhodes danrhodes marked this pull request as ready for review December 31, 2025 20:04
@danrhodes danrhodes merged commit 65bb4b5 into dev Dec 31, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant