Skip to content

Commit

Permalink
Fix CDN button visibility
Browse files Browse the repository at this point in the history
Only show the Red Hat CDN button if the Subscription
module appears to be running. To achieve that, we do
the same thing as with the HMC button - the CDN
button invisible by default. And enable it only if it
looks like the Subscription module is running.
  • Loading branch information
M4rtinK committed Sep 11, 2020
1 parent 687371b commit aca2975
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyanaconda/ui/gui/spokes/installation_source.glade
Expand Up @@ -633,9 +633,9 @@
<child>
<object class="GtkRadioButton" id="cdnRadioButton">
<property name="label" translatable="yes" context="GUI|Software Source">Red Hat _CDN</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="no_show_all">True</property>
<property name="margin_left">12</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
Expand Down
4 changes: 2 additions & 2 deletions pyanaconda/ui/gui/spokes/installation_source.py
Expand Up @@ -854,9 +854,9 @@ def _initialize_closest_mirror(self):
def _initialize(self):
threadMgr.wait(constants.THREAD_PAYLOAD)

# If there is no Subscriptiopn DBus module, disable the CDN radio button
# If there is the Subscriptiopn DBus module, make the CDN radio button visible
if is_module_available(SUBSCRIPTION):
gtk_call_once(self._cdn_button.set_no_show_all, True)
gtk_call_once(self._cdn_button.set_no_show_all, False)

# Get the current source.
source_proxy = self.payload.get_source_proxy()
Expand Down

0 comments on commit aca2975

Please sign in to comment.