1. Arne Babenhauserheide
  2. pyrad

Commits

Arne Babenhauserheide  committed b860150

FIX: Upper-level changes weren't saved.

  • Participants
  • Parent commits a0e703c
  • Branches default

Comments (0)

Files changed (1)

File rad.py

View file
         # We roll back the circle to the top level
         #: The trail we walked - traverse in reverse to get back to the upper layout. 
         clicktrail = [] 
+        # store current items as item list
+        #: The current upper layout
+        items_upper = [(label.icon, label.action) for label in self.circle]
+        # And reshape the circle, so it corresponds to the layout we want to save
+        self.arrange_in_circle(items)
         # The center can't change, so we can use the one from the previous version of the circle.
         while self.circle[0].action is not None:
-            # store current items as item list
-            #: The current upper layout
-            items_upper = [(label.icon, label.action) for label in self.circle]
             #: Items in the current folder, not for the circle!
             items_folder = items_upper
             # replace the first with a generic center.
             if not found_the_folder:
                 print "Gah!"
                 return False
+            # store current items as item list again
+            #: The current upper layout
+            items_upper = [(label.icon, label.action) for label in self.circle]
+
 
         items_new = [(i.icon, i.action) for i in self.circle]
         # Now we walk back on the clicktrail