mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-03-10 00:54:23 +00:00
UI: fix ID copying from the Show Game Info popup
This commit is contained in:
parent
2b06826922
commit
bed3835718
@ -49,16 +49,13 @@ namespace Ryujinx.Ava.UI.Views.Misc
|
||||
|
||||
private async void IdString_OnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (DataContext is not MainWindowViewModel mwvm)
|
||||
return;
|
||||
|
||||
if (sender is not Button { Content: TextBlock idText })
|
||||
return;
|
||||
|
||||
if (!RyujinxApp.IsClipboardAvailable(out IClipboard clipboard))
|
||||
return;
|
||||
|
||||
ApplicationData appData = mwvm.Applications.FirstOrDefault(it => it.IdString == idText.Text);
|
||||
ApplicationData appData = RyujinxApp.MainWindow.ViewModel.Applications.FirstOrDefault(it => it.IdString == idText.Text);
|
||||
if (appData is null)
|
||||
return;
|
||||
|
||||
|
@ -36,6 +36,8 @@ namespace Ryujinx.Ava.UI.Windows
|
||||
NormalControls.IsVisible = ConfigurationState.Instance.ShowTitleBar;
|
||||
}
|
||||
|
||||
// ReSharper disable once UnusedMember.Local
|
||||
// its referenced in the axaml but rider keeps yelling at me that its unused so
|
||||
private void TextBox_OnTextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (DataContext is not CompatibilityViewModel cvm)
|
||||
|
Loading…
x
Reference in New Issue
Block a user