Conversation
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>
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.
No description provided.