mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 09:21:15 +01:00
Null-conditional assignments, continued
This commit is contained in:
1 parent
e349ef72fb
commit
e287c9fc85
4 files changed
+5
-16
No files matched your search
@@ -37,10 +37,7 @@ namespace Ryujinx.Ava.UI.Controls
|
||||
|
||||
private void SearchBox_OnKeyUp(object sender, KeyEventArgs args)
|
||||
{
|
||||
if (DataContext is MainWindowViewModel model)
|
||||
{
|
||||
model.SearchText = (sender as TextBox)?.Text;
|
||||
}
|
||||
(DataContext as MainWindowViewModel)?.SearchText = (sender as TextBox)?.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,10 +38,7 @@ namespace Ryujinx.Ava.UI.Controls
|
||||
|
||||
private void SearchBox_OnKeyUp(object sender, KeyEventArgs args)
|
||||
{
|
||||
if (DataContext is MainWindowViewModel model)
|
||||
{
|
||||
model.SearchText = (sender as TextBox)?.Text;
|
||||
}
|
||||
(DataContext as MainWindowViewModel)?.SearchText = (sender as TextBox)?.Text;
|
||||
}
|
||||
|
||||
private async void IdString_OnClick(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in new issue
Block a user