Anonymous avatar Anonymous committed b860150

FIX: Upper-level changes weren't saved.

Comments (0)

Files changed (1)

         # 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.