UI: Move ApplicationContextMenu in a separated class (#4755)

* UI: Move ApplicationContextMenu in a separated class

This PR remove duplicated code related to the context menu on the Application list/grid by create a control for the menu which include related handler.

I've renamed "GameList/GameGrid" by "Application" for consistencies. And I've removed all uneeded field from the project file too.

While I cleaned up things, I've found an issue about purging Ptc/Shader cache, both methods list files even if the user say "No", shader cache is purged even if the user say "No". It's fixed.

* Adresses feedbacks
This commit is contained in:
Ac_K 2023-05-04 16:41:06 +02:00 committed by GitHub
parent 4250732353
commit 3b8ac1641a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 526 additions and 578 deletions

View file

@ -288,13 +288,13 @@ namespace Ryujinx.Ava.UI.Windows
{
StatusBarView.VolumeStatus.Click += VolumeStatus_CheckedChanged;
GameGrid.ApplicationOpened += Application_Opened;
ApplicationGrid.ApplicationOpened += Application_Opened;
GameGrid.DataContext = ViewModel;
ApplicationGrid.DataContext = ViewModel;
GameList.ApplicationOpened += Application_Opened;
ApplicationList.ApplicationOpened += Application_Opened;
GameList.DataContext = ViewModel;
ApplicationList.DataContext = ViewModel;
LoadHotKeys();
}