mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-20 09:17:11 +02:00
misc: chore: Use string.Empty in more places where it's snuck back
This commit is contained in:
parent
191e158289
commit
2acc43e968
10 changed files with 24 additions and 21 deletions
|
@ -7,23 +7,26 @@ namespace Ryujinx.Ava.UI.Views.Settings
|
|||
{
|
||||
public partial class SettingsNetworkView : UserControl
|
||||
{
|
||||
private readonly Random _random;
|
||||
|
||||
public SettingsViewModel ViewModel;
|
||||
|
||||
public SettingsNetworkView()
|
||||
{
|
||||
_random = new Random();
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void GenLdnPassButton_OnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
byte[] code = new byte[4];
|
||||
new Random().NextBytes(code);
|
||||
_random.NextBytes(code);
|
||||
ViewModel.LdnPassphrase = $"Ryujinx-{BitConverter.ToUInt32(code):x8}";
|
||||
}
|
||||
|
||||
private void ClearLdnPassButton_OnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ViewModel.LdnPassphrase = "";
|
||||
ViewModel.LdnPassphrase = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue