Skip to content

Commit

Permalink
gtk: Actually save selected network interface to config
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed Apr 14, 2023
1 parent 506a82a commit 6d9809b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Ryujinx/Ui/Windows/SettingsWindow.cs
Expand Up @@ -351,7 +351,7 @@ private SettingsWindow(MainWindow parent, Builder builder, VirtualFileSystem vir

_graphicsBackend.Changed += (sender, e) => UpdatePreferredGpuComboBox();
PopulateNetworkInterfaces();
_multiLanSelect.SetActiveId(ConfigurationState.Instance.Multiplayer.LanInterfaceId.Value.ToString());
_multiLanSelect.SetActiveId(ConfigurationState.Instance.Multiplayer.LanInterfaceId.Value);

_custThemePath.Buffer.Text = ConfigurationState.Instance.Ui.CustomThemePath;
_resScaleText.Buffer.Text = ConfigurationState.Instance.Graphics.ResScaleCustom.Value.ToString();
Expand Down Expand Up @@ -633,6 +633,7 @@ private void SaveSettings()
ConfigurationState.Instance.Graphics.AntiAliasing.Value = Enum.Parse<AntiAliasing>(_antiAliasing.ActiveId);
ConfigurationState.Instance.Graphics.ScalingFilter.Value = Enum.Parse<ScalingFilter>(_scalingFilter.ActiveId);
ConfigurationState.Instance.Graphics.ScalingFilterLevel.Value = (int)_scalingFilterLevel.Value;
ConfigurationState.Instance.Multiplayer.LanInterfaceId.Value = _multiLanSelect.ActiveId;

_previousVolumeLevel = ConfigurationState.Instance.System.AudioVolume.Value;

Expand Down Expand Up @@ -812,4 +813,4 @@ private void CloseToggle_Activated(object sender, EventArgs args)
Dispose();
}
}
}
}

0 comments on commit 6d9809b

Please sign in to comment.