diff options
| author | Ac_K <Acoustik666@gmail.com> | 2023-05-04 16:41:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-04 14:41:06 +0000 |
| commit | 3b8ac1641a8a40849915396813e26384b5894911 (patch) | |
| tree | 5355d6601917146809323990a1a0de8f3a7e893b /src/Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs | |
| parent | 42507323535443ad79be071367f3d4815afca688 (diff) | |
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
Diffstat (limited to 'src/Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs')
| -rw-r--r-- | src/Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs b/src/Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs index 404d4ee0..eec77479 100644 --- a/src/Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs +++ b/src/Ryujinx.Ava/UI/Windows/MainWindow.axaml.cs @@ -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(); } |
