mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-24 12:57:11 +02:00
UI: fix ID copying from the Show Game Info popup
This commit is contained in:
parent
2b06826922
commit
bed3835718
2 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue