mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-30 16: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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -204,8 +204,8 @@ namespace Ryujinx.Ava.Utilities.Configuration
|
|||
Multiplayer.LanInterfaceId.Value = "0";
|
||||
Multiplayer.Mode.Value = MultiplayerMode.Disabled;
|
||||
Multiplayer.DisableP2p.Value = false;
|
||||
Multiplayer.LdnPassphrase.Value = "";
|
||||
Multiplayer.LdnServer.Value = "";
|
||||
Multiplayer.LdnPassphrase.Value = string.Empty;
|
||||
Multiplayer.LdnServer.Value = string.Empty;
|
||||
UI.GuiColumns.FavColumn.Value = true;
|
||||
UI.GuiColumns.IconColumn.Value = true;
|
||||
UI.GuiColumns.AppColumn.Value = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue