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:
Emad Saadat 2023-03-28 22:05:09 -07:00 committed by Felipe Borges
parent 216a7619b7
commit 813a5f838c

View file

@ -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>