UI: Only allow right click to create a context menu if a game is selected.

This commit is contained in:
Evan Husted
2024-12-31 22:25:46 -06:00
committed by KeatonTheBot
parent 6bfcdeee8c
commit f244157979
5 changed files with 64 additions and 27 deletions
@@ -36,14 +36,6 @@ namespace Ryujinx.Ava.UI.Controls
}
}
public void GameList_SelectionChanged(object sender, SelectionChangedEventArgs args)
{
if (sender is ListBox listBox)
{
(DataContext as MainWindowViewModel).ListSelectedApplication = listBox.SelectedItem as ApplicationData;
}
}
private void SearchBox_OnKeyUp(object sender, KeyEventArgs args)
{
(DataContext as MainWindowViewModel).SearchText = (sender as TextBox).Text;