network: hide Last used when creating new connection

Part-of: <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1996>
This commit is contained in:
Ondřej Pohořelský 2023-10-26 15:28:03 +02:00 committed by Marge Bot
parent 88ce1f97b3
commit 72246bceb1

View file

@ -474,7 +474,7 @@ connect_details_page (CEPageDetails *self)
gtk_widget_set_visible (GTK_WIDGET (self->route_label), FALSE);
}
if (!device_is_active && self->connection)
if (!device_is_active && self->connection && !self->is_new_connection)
update_last_used (self, self->connection);
else {
gtk_widget_set_visible (GTK_WIDGET (self->last_used_heading_label), FALSE);