Repository navigation
feat: decouple desktop background lifetime control - #82
Merged
Merged
Conversation
smanuel89
approved these changes
Oct 28, 2026
ezra-ba
approved these changes
Oct 28, 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.
Zusammenfassung
Die Ablaufsteuerung für Hintergrundbetrieb und Beenden wird aus der direkten Fenstersteuerung in einen UI-unabhängigen Core-Controller ausgelagert. DesktopSession verwendet diesen Controller über einen kleinen Fensteradapter. Bei gemeldetem Tray-Verlust wird ein verborgenes Hauptfenster wieder geöffnet, damit die App erreichbar bleibt.
Dieser PR erledigt den Backend-Teil. Die native Tray-Erzeugung und Erkennung nutzbarer Tray-Unterstützung übernimmt Manuel separat. Der aktuelle Linux-Ausschluss in App.axaml.cs bleibt unverändert; dieser PR allein behebt daher noch nicht den vollständigen sichtbaren Linux-Fehler.
Verknüpftes Issue
Closes #81
Änderungen
Verifikation
dotnet build Sortify.sln --configuration Release --no-restore— keine Warnungen oder Fehlerdotnet test Sortify.sln --configuration Release --no-build --no-restore— 422 erfolgreich (240 Core, 107 Infrastructure, 75 App)git diff --checkÜbergabe an Manuel
Die tatsächlich nutzbare Tray-Verfügbarkeit beim Erstellen der DesktopSession übergeben und bei Änderungen auf dem UI-Thread über
session.SetTrayAvailability(available)aktualisieren. Linux nicht pauschal ausschließen. Native Menüanbindung allein garantiert kein sichtbares Tray-Icon. Icon und Menü zum Öffnen/Beenden sowie ein sicherer Fallback ohne nutzbaren Tray gehören zum Folgeauftrag.Screenshots
Nicht zutreffend — keine Änderung an Views oder Tray-Darstellung.
Checkliste