[gnome-boxes/downloads-discoverability: 1/2] review-page: Set the visibility of the "no kvm infobar"



commit bacd70fb65666354903fcd0b7cbbcb8ec052fe46
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Feb 20 16:38:30 2020 +0100

    review-page: Set the visibility of the "no kvm infobar"
    
    Cherry-picked from d9902e9c744d5bb0f7a24c1ad86bf6ee5cd4f13a

 data/ui/assistant/pages/review-page.ui | 2 +-
 src/assistant/review-page.vala         | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/assistant/pages/review-page.ui b/data/ui/assistant/pages/review-page.ui
index a135151d..a668ceed 100644
--- a/data/ui/assistant/pages/review-page.ui
+++ b/data/ui/assistant/pages/review-page.ui
@@ -21,7 +21,7 @@
 
     <child>
       <object class="GtkInfoBar" id="nokvm_infobar">
-        <property name="visible">True</property>
+        <property name="visible">False</property>
         <property name="halign">fill</property>
         <property name="spacing">0</property>
         <property name="message-type">warning</property>
diff --git a/src/assistant/review-page.vala b/src/assistant/review-page.vala
index afda063e..cb8c3307 100644
--- a/src/assistant/review-page.vala
+++ b/src/assistant/review-page.vala
@@ -62,9 +62,10 @@ public async void populate (LibvirtMachine machine) {
                          error.message);
             }
 
-            nokvm_infobar.visible = (machine.domain_config.get_virt_type () != 
GVirConfig.DomainVirtType.KVM);
         }
 
+        nokvm_infobar.visible = (machine.domain_config.get_virt_type () != GVirConfig.DomainVirtType.KVM);
+
         populate_customization_grid (machine);
     }
 


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