Hide airplane mode completely
Recently, code was added to hide the airplane mode switch when the funcitonality is not present. However, the 'Airplane mode' label was left behind. We already have a container that holds the entire header content of the network panel, just hide that instead. https://bugzilla.gnome.org/show_bug.cgi?id=706687
This commit is contained in:
parent
0f31090bae
commit
826646f7fc
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ sync_airplane_mode_switch (CcNetworkPanel *panel)
|
|||
result = g_dbus_proxy_get_cached_property (panel->priv->rfkill_proxy, "HasAirplaneMode");
|
||||
enabled = g_variant_get_boolean (result);
|
||||
|
||||
gtk_widget_set_visible (GTK_WIDGET (panel->priv->rfkill_switch), enabled);
|
||||
gtk_widget_set_visible (GTK_WIDGET (panel->priv->kill_switch_header), enabled);
|
||||
if (!enabled)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue