mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-07 05:16:26 +02:00
UI: Rename App to RyujinxApp
Add more NotificationHelper methods Simplify ID copy logic
This commit is contained in:
parent
4d7350fc6e
commit
16a60fdf12
13 changed files with 82 additions and 40 deletions
|
@ -43,17 +43,19 @@ namespace Ryujinx.Ava.UI.Controls
|
|||
|
||||
if (sender is not Button { Content: TextBlock idText })
|
||||
return;
|
||||
|
||||
if (!RyujinxApp.IsClipboardAvailable(out var clipboard))
|
||||
return;
|
||||
|
||||
if (App.MainWindow.Clipboard is { } clipboard)
|
||||
{
|
||||
var appData = mwvm.Applications.FirstOrDefault(it => it.IdString == idText.Text);
|
||||
if (appData is null)
|
||||
return;
|
||||
var appData = mwvm.Applications.FirstOrDefault(it => it.IdString == idText.Text);
|
||||
if (appData is null)
|
||||
return;
|
||||
|
||||
await clipboard.SetTextAsync(appData.IdString);
|
||||
|
||||
await clipboard.SetTextAsync(appData.IdString);
|
||||
|
||||
NotificationHelper.Show("Copied Title ID", $"{appData.Name} ({appData.IdString})", NotificationType.Information);
|
||||
}
|
||||
NotificationHelper.ShowInformation(
|
||||
"Copied Title ID",
|
||||
$"{appData.Name} ({appData.IdString})");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue