[gnome-builder] plugins/platformui: add tweak for network on metered connections



commit 665089c1fcfe104548af5c9b881eb3cf2d1d22bb
Author: Christian Hergert <chergert redhat com>
Date:   Thu Aug 18 18:55:35 2022 -0700

    plugins/platformui: add tweak for network on metered connections

 src/plugins/platformui/tweaks.ui | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
---
diff --git a/src/plugins/platformui/tweaks.ui b/src/plugins/platformui/tweaks.ui
index b9e138180..70b2c7c80 100644
--- a/src/plugins/platformui/tweaks.ui
+++ b/src/plugins/platformui/tweaks.ui
@@ -7,6 +7,12 @@
         <property name="application-only">true</property>
       </object>
     </child>
+    <child>
+      <object class="IdeTweaksSettings">
+        <property name="schema-id">org.gnome.builder.build</property>
+        <property name="application-only">true</property>
+      </object>
+    </child>
     <child internal-child="visual_section">
       <object class="IdeTweaksSection">
         <child internal-child="appearance_page">
@@ -48,5 +54,26 @@
         </child>
       </object>
     </child>
+    <child internal-child="external_section">
+      <object class="IdeTweaksSection">
+        <child>
+          <object class="IdeTweaksPage" id="network_page">
+            <property name="icon-name">network-transmit-receive-symbolic</property>
+            <property name="title" translatable="yes">Network</property>
+            <child>
+              <object class="IdeTweaksGroup">
+                <child>
+                  <object class="IdeTweaksSwitch">
+                    <property name="title" translatable="yes">Allow Downloads when Metered</property>
+                    <property name="subtitle" translatable="yes">Allow the download of SDKs and dependencies 
when on metered internet connections</property>
+                    <property 
name="action-name">settings.org.gnome.builder.build.allow-network-when-metered</property>
+                  </object>
+                </child>
+              </object>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
   </template>
 </interface>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]