mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 04:10:14 +01:00
device: only emit notify::ifindex when the value actually changes
This commit is contained in:
parent
78017f1bdc
commit
bd09decf16
1 changed files with 4 additions and 2 deletions
|
|
@ -2320,8 +2320,10 @@ update_device_from_platform_link (NMDevice *self, const NMPlatformLink *plink)
|
|||
_notify (self, PROP_IFACE);
|
||||
}
|
||||
|
||||
priv->ifindex = plink->ifindex;
|
||||
_notify (self, PROP_IFINDEX);
|
||||
if (priv->ifindex != plink->ifindex) {
|
||||
priv->ifindex = plink->ifindex;
|
||||
_notify (self, PROP_IFINDEX);
|
||||
}
|
||||
|
||||
priv->up = NM_FLAGS_HAS (plink->n_ifi_flags, IFF_UP);
|
||||
if (plink->driver && g_strcmp0 (plink->driver, priv->driver) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue