[PATCH 6/7] Store template for installed OS description for repeated use.

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

 



---
 pyanaconda/ui/gui/spokes/custom.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index bf1589c..a313eda 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -109,6 +109,7 @@ class CustomPartitioningSpoke(NormalSpoke):
 
         self._current_selector = None
         self._ran_autopart = False
+        self._when_create_text = ""
 
     def apply(self):
         pass
@@ -135,6 +136,9 @@ class CustomPartitioningSpoke(NormalSpoke):
 
         NormalSpoke.initialize(self)
 
+        label = self.builder.get_object("whenCreateLabel")
+        self._when_create_text = label.get_text()
+
         self._grabObjects()
         setViewportBackground(self.builder.get_object("availableSpaceViewport"), "#db3279")
         setViewportBackground(self.builder.get_object("totalSpaceViewport"), "#60605b")
@@ -252,7 +256,7 @@ class CustomPartitioningSpoke(NormalSpoke):
 
             self._partitionsNotebook.set_current_page(0)
             label = self.builder.get_object("whenCreateLabel")
-            label.set_text(label.get_text() % (productName, productVersion))
+            label.set_text(self._when_create_text % (productName, productVersion))
 
         # Add in all the existing (or autopart-created) operating systems.
         for root in self.storage.roots:
-- 
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux