netgod / rpms / anaconda

Forked from rpms/anaconda 2 years ago
Clone
fb0a1b
From a93b04f012cd0e9f6b78499c3434a1018c2a2984 Mon Sep 17 00:00:00 2001
618a05
From: Martin Kolman <mkolman@redhat.com>
618a05
Date: Fri, 11 Sep 2020 15:27:59 +0200
fb0a1b
Subject: [PATCH 3/4] Fix CDN button visibility
618a05
618a05
Only show the Red Hat CDN button if the Subscription
618a05
module appears to be running. To achieve that, we do
618a05
the same thing as with the HMC button - the CDN
618a05
button invisible by default. And enable it only if it
618a05
looks like the Subscription module is running.
618a05
618a05
(cherry picked from commit: aca297587ab8bdd7342fa056273bfff379bc0a0b)
618a05
618a05
Resolves: rhbz#1903178
618a05
618a05
https://github.com/rhinstaller/anaconda/pull/3020
618a05
https://github.com/M4rtinK/anaconda/commit/c29802a2be591a4cdcc91ba86b74fc4d01087b72
618a05
---
618a05
 pyanaconda/ui/gui/spokes/installation_source.glade | 2 +-
618a05
 pyanaconda/ui/gui/spokes/installation_source.py    | 4 ++--
618a05
 2 files changed, 3 insertions(+), 3 deletions(-)
618a05
618a05
diff --git a/pyanaconda/ui/gui/spokes/installation_source.glade b/pyanaconda/ui/gui/spokes/installation_source.glade
618a05
index a23f8be714..e53fa230ca 100644
618a05
--- a/pyanaconda/ui/gui/spokes/installation_source.glade
618a05
+++ b/pyanaconda/ui/gui/spokes/installation_source.glade
618a05
@@ -633,9 +633,9 @@
618a05
                             <child>
618a05
                               <object class="GtkRadioButton" id="cdnRadioButton">
618a05
                                 <property name="label" translatable="yes" context="GUI|Software Source">Red Hat _CDN</property>
618a05
-                                <property name="visible">True</property>
618a05
                                 <property name="can_focus">True</property>
618a05
                                 <property name="receives_default">False</property>
618a05
+                                <property name="no_show_all">True</property>
618a05
                                 <property name="margin_left">12</property>
618a05
                                 <property name="use_underline">True</property>
618a05
                                 <property name="xalign">0</property>
618a05
diff --git a/pyanaconda/ui/gui/spokes/installation_source.py b/pyanaconda/ui/gui/spokes/installation_source.py
618a05
index 6aab9b387a..d0d4da72b9 100644
618a05
--- a/pyanaconda/ui/gui/spokes/installation_source.py
618a05
+++ b/pyanaconda/ui/gui/spokes/installation_source.py
618a05
@@ -854,9 +854,9 @@ class SourceSpoke(NormalSpoke, GUISpokeInputCheckHandler, SourceSwitchHandler):
618a05
     def _initialize(self):
618a05
         threadMgr.wait(constants.THREAD_PAYLOAD)
618a05
 
618a05
-        # If there is no Subscriptiopn DBus module, disable the CDN radio button
618a05
+        # If there is the Subscriptiopn DBus module, make the CDN radio button visible
618a05
         if is_module_available(SUBSCRIPTION):
618a05
-            gtk_call_once(self._cdn_button.set_no_show_all, True)
618a05
+            gtk_call_once(self._cdn_button.set_no_show_all, False)
618a05
 
618a05
         # Get the current source.
618a05
         source_proxy = self.payload.get_source_proxy()
618a05
-- 
161635
2.30.2
618a05