Keep filelist selection between (auto) updates (issue #2243)
[pithos-web-client] / src / gr / grnet / pithos / web / client / Pithos.java
index 191a4f5..2978ca3 100644 (file)
@@ -465,20 +465,20 @@ public class Pithos implements EntryPoint, ResizeHandler {
             }
         });
         
-//        Scheduler.get().scheduleFixedDelay(new RepeatingCommand() {
-//                     
-//                     @Override
-//                     public boolean execute() {
-//                             Folder f = getSelection();
-//                             if (f != null) {
-//                                     if (getSelectedTree().equals(folderTreeView))
-//                                             updateFolder(f, true, null);
-//                                     else if (getSelectedTree().equals(mysharedTreeView))
-//                                             updateSharedFolder(f, true);
-//                             }
-//                             return true;
-//                     }
-//             }, 3000);
+        Scheduler.get().scheduleFixedDelay(new RepeatingCommand() {
+                       
+                       @Override
+                       public boolean execute() {
+                               Folder f = getSelection();
+                               if (f != null) {
+                                       if (getSelectedTree().equals(folderTreeView))
+                                               updateFolder(f, true, null);
+                                       else if (getSelectedTree().equals(mysharedTreeView))
+                                               updateSharedFolder(f, true);
+                               }
+                               return true;
+                       }
+               }, 3000);
     }
 
     public void applyPermissions(Folder f) {