wi-fi: Remove extraneous list box in Airplane Mode group
and give parent AdwPreferencesGroup the id of rfkill_widget to preserve previous behavior (hiding widget when no airplane mode available).
This commit is contained in:
parent
216a7619b7
commit
813a5f838c
1 changed files with 6 additions and 15 deletions
|
@ -50,22 +50,13 @@
|
|||
<object class="AdwPreferencesPage">
|
||||
<!-- Airplane Mode Toggle -->
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<object class="AdwPreferencesGroup" id="rfkill_widget">
|
||||
<child>
|
||||
<object class="GtkListBox" id="rfkill_widget">
|
||||
<property name="margin_bottom">32</property>
|
||||
<property name="selection-mode">none</property>
|
||||
<style>
|
||||
<class name="boxed-list"/>
|
||||
</style>
|
||||
<child>
|
||||
<object class="CcListRow" id="rfkill_row">
|
||||
<property name="show-switch">True</property>
|
||||
<property name="title" translatable="yes">Airplane Mode</property>
|
||||
<property name="subtitle" translatable="yes">Disables Wi-Fi, Bluetooth and mobile broadband</property>
|
||||
<signal name="notify::active" handler="rfkill_switch_notify_activate_cb" object="CcWifiPanel" swapped="no" />
|
||||
</object>
|
||||
</child>
|
||||
<object class="CcListRow" id="rfkill_row">
|
||||
<property name="show-switch">True</property>
|
||||
<property name="title" translatable="yes">Airplane Mode</property>
|
||||
<property name="subtitle" translatable="yes">Disables Wi-Fi, Bluetooth and mobile broadband</property>
|
||||
<signal name="notify::active" handler="rfkill_switch_notify_activate_cb" object="CcWifiPanel" swapped="no" />
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
Loading…
Add table
Reference in a new issue