Commit 276a7020 authored by Mathieu Trudel-Lapierre's avatar Mathieu Trudel-Lapierre Committed by Dan Williams
Browse files

applet: always show the applet

This is a patch that has been carried in Ubuntu for a while now. Instead of
hiding the applet if NetworkManager isn't running, make use of the messages
already included that mention that it's not, and just always keep showing
the applet; just with a different menu if NM is unavailable.
parent a13e529d
......@@ -2482,6 +2482,8 @@ foo_client_setup (NMApplet *applet)
if (nm_client_get_manager_running (applet->nm_client))
g_idle_add (foo_set_initial_state, applet);
applet_schedule_update_icon (applet);
}
#if WITH_MODEM_MANAGER_1
......@@ -2719,7 +2721,6 @@ applet_update_icon (gpointer user_data)
applet->update_icon_id = 0;
nm_running = nm_client_get_manager_running (applet->nm_client);
gtk_status_icon_set_visible (applet->status_icon, nm_running);
/* Handle device state first */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment