Avalonia: Implement missing features#4662
Merged
Gabriel Dufresne (GabrielDuf) merged 23 commits intomainfrom Apr 29, 2026
Merged
Avalonia: Implement missing features#4662Gabriel Dufresne (GabrielDuf) merged 23 commits intomainfrom
Gabriel Dufresne (GabrielDuf) merged 23 commits intomainfrom
Conversation
Port WinUI CLIHandler to the Avalonia entry point: --import-settings, --export-settings, --enable-setting, --disable-setting, --set-setting-value, and the --enable/disable-secure-setting family all exit before the Avalonia app starts, matching WinUI behaviour. --help opens the CLI reference page in the default browser. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
After managers finish loading, run IntegrityTester.CheckIntegrity() and show a modal dialog when files are missing or corrupt. Mirrors the WinUI behaviour in App.xaml.cs. Skipped when DisableIntegrityChecks setting is set. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add AskLocationAndDownloadAsync (single package, save-file dialog) and DownloadSelectedAsync (bulk, folder-picker dialog) to AvaloniaPackageOperationHelper, mirroring WinUI's AppOperationHelper.AskLocationAndDownload / Download. Wire the previously-stubbed toolbar and context-menu click handlers on all four package pages: Discover, Updates, Installed, and Bundles. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add missing Avalonia, Avalonia.Media using directives and remove the incorrect .Unwrap() call on InvokeAsync — Avalonia's dispatcher already awaits the inner Task when a Func<Task> is passed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Port the batch script export from WinUI: add a toolbar button that opens a save-file picker for a .ps1 file, iterates ImportedPackage entries to collect kill/pre/install/post commands, writes a full PowerShell installer script with ASCII-art header and per-command success/failure reporting, then shows a success banner and opens the file in Explorer. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Detect WinGet malfunction after installed-packages load (ready manager, zero packages loaded) and surface a dismissable WinGetWarningBanner with a "Repair WinGet" action button, respecting the DisableWinGetMalfunctionDetector setting - Implement HandleBrokenWinGetAsync() in AvaloniaPackageOperationHelper: runs the elevated PowerShell repair sequence, shows a success/error banner, and reloads upgradable/installed package lists on success - Wire the existing "Reset WinGet" button in the Package Manager settings page to the new helper (replacing the previous TODO stub) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
After the integrity check, call GetMissingDependenciesAsync() and show a modal dialog for each missing dependency, in order. Each dialog: - Displays the dependency name, description, and the manual install command - Offers an Install button that runs the dependency's installer, waits for it to finish, then prompts Restart or Continue - On the final dependency, restarting launches a new UniGetUI process and shuts down the current one (matching WinUI behaviour) - Tracks first/repeat attempts via the DependencyManagement dictionary setting; shows "Don't show again" checkbox on repeat attempts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace all programmatic new Window {} dialog constructions with proper
.axaml + .axaml.cs dialog views in Views/DialogPages/, picking up the
app-wide Background="{DynamicResource AppDialogBackground}" and full
Fluent theme styling instead of clashing unstyled system windows.
New views:
- IntegrityViolationDialog — startup integrity failure notice
- MissingDependencyDialog — per-dependency install/skip/restart flow
- DiscardBundleChangesDialog — confirm discarding unsaved bundle edits
- BundleSecurityReportDialog — show stripped/allowed security report
- SimpleErrorDialog — generic error message with OK button
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Use StatusWarningForeground (amber in dark, dark-amber in light) on the body text, matching the WinUI SystemControlErrorTextForegroundBrush. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… failure Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…when ScreenshotCount changes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…elimiter Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Marc-André Moreau (mamoreau-devolutions)
approved these changes
Apr 29, 2026
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.
This branch implements several features that were previously missing from the Avalonia port, bringing it closer to WinUI parity.
What's included:
Installed Packages page and Package Manager settings page
as delimiters (no Add button, matching WinUI behavior)