mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-03-15 06:54:47 +00: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)
|
private async void IdString_OnClick(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (DataContext is not MainWindowViewModel mwvm)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (sender is not Button { Content: TextBlock idText })
|
if (sender is not Button { Content: TextBlock idText })
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!RyujinxApp.IsClipboardAvailable(out IClipboard clipboard))
|
if (!RyujinxApp.IsClipboardAvailable(out IClipboard clipboard))
|
||||||
return;
|
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)
|
if (appData is null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,8 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
NormalControls.IsVisible = ConfigurationState.Instance.ShowTitleBar;
|
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)
|
private void TextBox_OnTextChanged(object sender, TextChangedEventArgs e)
|
||||||
{
|
{
|
||||||
if (DataContext is not CompatibilityViewModel cvm)
|
if (DataContext is not CompatibilityViewModel cvm)
|
||||||
|
|
Loading…
Add table
Reference in a new issue