Repository navigation
Update Avalonia to 12.2 - #199
Merged
Merged
Conversation
Avalonia.Labs.Notifications 12.2.0 is built against Avalonia 12.1 and Tmds.DBus.Protocol 0.94.1 and no longer calls DBusConnection.AsConnection(), which made the app crash at startup on Linux and held Avalonia at 12.0.x. Move the GlobalShortcuts portal client to the Notification<T> overloads of AddMatchAsync and save the scaled icon with PngBitmapEncoderOptions, both replacing APIs that are now obsolete.
The GlobalShortcuts portal client only compiles against it, and the version Avalonia and Avalonia.Labs.Notifications ask for is the one they are built against. Pinning it by hand only risks falling behind the next Avalonia update.
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.
Avalonia.Labs.Notifications 12.2.0 is built against Avalonia 12.1.0 and Tmds.DBus.Protocol 0.94.1 and no longer calls
DBusConnection.AsConnection(), which was the reason Avalonia was held at 12.0.x (the app crashed at startup on Linux with aMissingMethodException).GlobalShortcutsPortaluses theNotification<T>overloads ofAddMatchAsync; values are handled only whenHasValue, errors only whenExceptionis set.PngBitmapEncoderOptions.Default.Build and all 1547 tests pass locally on Windows. Still to check by hand on Linux: startup with notifications, the global shortcut, and a visual pass over the Fluent styles and the edit dialog after the binding and focus changes in 12.1/12.2.