Skip to content

Fix obsolete clipboard warnings#39

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/clipboard-obsolete-warning
Mar 5, 2026
Merged

Fix obsolete clipboard warnings#39
erikdarlingdata merged 1 commit intodevfrom
fix/clipboard-obsolete-warning

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Replace IClipboard.GetTextAsync() with ClipboardExtensions.TryGetTextAsync() in both paste handlers
  • Adds using Avalonia.Input.Platform to resolve the extension method

Closes #3

Test plan

  • Build with zero warnings (dotnet build -c Debug)
  • Paste from clipboard in query editor
  • Paste XML from clipboard via File > Paste Plan XML

🤖 Generated with Claude Code

Replace GetTextAsync() with ClipboardExtensions.TryGetTextAsync()
in both QuerySessionControl and MainWindow paste handlers.

Closes #3

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit f1b484f into dev Mar 5, 2026
2 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