network: Say 'never' when the connection hasn't been used
Nicer to say 'Last used: never', then to show nothing.
This commit is contained in:
parent
16011384ef
commit
78e9ed9cea
1 changed files with 3 additions and 1 deletions
|
@ -1649,8 +1649,10 @@ update_saved_last_used (NetDeviceWifi *device_wifi)
|
|||
if (s_con == NULL)
|
||||
goto out;
|
||||
timestamp = nm_setting_connection_get_timestamp (s_con);
|
||||
if (timestamp == 0)
|
||||
if (timestamp == 0) {
|
||||
last_used = g_strdup (_("never"));
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* calculate the amount of time that has elapsed */
|
||||
now = g_date_time_new_now_utc ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue