mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-20 17:51:13 +02:00
misc: chore: Fix possible NullReferenceExceptions, InvalidOperationExceptions
This commit is contained in:
@@ -38,7 +38,10 @@ namespace Ryujinx.Ava.UI.Controls
|
||||
|
||||
private void SearchBox_OnKeyUp(object sender, KeyEventArgs args)
|
||||
{
|
||||
(DataContext as MainWindowViewModel).SearchText = (sender as TextBox)?.Text;
|
||||
if (DataContext is MainWindowViewModel model)
|
||||
{
|
||||
model.SearchText = (sender as TextBox)?.Text;
|
||||
}
|
||||
}
|
||||
|
||||
private async void IdString_OnClick(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user