mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-23 04:00:39 +02:00
core: emit UPDATED_BY_USER signal when reloading connection from file
Now UPDATED_BY_USER signal gets emitted immediately after the connection is updated, rather then only after it is successfully saved. This means, that the signal will be emitted earlier then before (right after changing the connection, but before it gets commited). Furthermore, the signal will also be emitted for connections that get changed but are not to be saved. Currently, the only subscriber to this signal is NMSettings (default_wired_connection_updated_by_user_cb), which should be fine with this change of semantics (even better). https://bugzilla.redhat.com/show_bug.cgi?id=1040528 Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
22cbc77bae
commit
85f3da8351
1 changed files with 2 additions and 2 deletions
|
|
@ -474,6 +474,8 @@ nm_settings_connection_replace_settings (NMSettingsConnection *self,
|
|||
* only update Unsaved if the caller wanted us to.
|
||||
*/
|
||||
changed_cb (self, GUINT_TO_POINTER (update_unsaved));
|
||||
|
||||
g_signal_emit (self, signals[UPDATED_BY_USER], 0);
|
||||
}
|
||||
|
||||
g_signal_handlers_unblock_by_func (self, G_CALLBACK (changed_cb), GUINT_TO_POINTER (TRUE));
|
||||
|
|
@ -1232,8 +1234,6 @@ con_update_cb (NMSettingsConnection *self,
|
|||
GUINT_TO_POINTER (NM_SETTING_SECRET_FLAG_AGENT_OWNED));
|
||||
nm_agent_manager_save_secrets (info->agent_mgr, for_agent, info->subject);
|
||||
g_object_unref (for_agent);
|
||||
|
||||
g_signal_emit (self, signals[UPDATED_BY_USER], 0);
|
||||
}
|
||||
|
||||
update_complete (self, info, error);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue