Skip to content

nmtui: fix WireGuard peer editor empty fields

Summary

Add G_PARAM_CONSTRUCT to NmtWireguardPeerEditorClass peer property.

Purpose

Previously, input fields for peer attributes such as 'Public Key' were not pre-populated with the existing settings of the peer. This was due to the WireGuard peer editor class not setting its peer property during object construction, as the necessary flag was absent. This commit addresses and fixes this issue.

Closes #1443 (closed)

Checklist

Please read https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md before opening the merge request. In particular, check that:

  • the subject for all commits is concise and explicative
  • the message for all commits explains the reason for the change
  • the source is properly formatted
  • any relevant documentation is up to date
  • you have added unit tests if applicable

Merge request reports