Skip to content

Clear package search queries when closing to the system tray#5119

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/clear-search-on-tray-hide
Jul 16, 2026
Merged

Clear package search queries when closing to the system tray#5119
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/clear-search-on-tray-hide

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request introduces a new feature that allows all search queries across different pages to be cleared at once, and ensures that search queries are reset when the main window is closed (but not fully exited). The main changes involve adding clear methods to the relevant view models and integrating this functionality into the window closing logic.

New search query clearing feature:

  • Added a ClearAllSearchQueries method to MainWindowViewModel that clears search queries on DiscoverPage, UpdatesPage, and InstalledPage, and resets the global search text.
  • Added a ClearSearchQuery method to PackagesPageViewModel that resets the search query state and triggers filtering if necessary.

Integration with window closing behavior:

  • Modified OnClosing in MainWindow.axaml.cs to call ViewModel.ClearAllSearchQueries() when the window is hidden (e.g., minimized to tray), ensuring that search states are reset.

@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit d83da16 into main Jul 16, 2026
8 of 9 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the fix/clear-search-on-tray-hide branch July 16, 2026 20:38
@GabrielDuf Gabriel Dufresne (GabrielDuf) linked an issue Jul 16, 2026 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] (Enter your description here)

2 participants