Make the mygpx dialog set up the tokens first
[potlatch2.git] / net / systemeD / potlatch2 / mygpx / MyGpxDialog.mxml
index 7ec0bde64958e7f1e1849d47023aeae8d3280f7d..bb7ae51915537887e02b0f6c2eaa738fa3885730 100644 (file)
     import mx.core.Application;
 
     import net.systemeD.halcyon.connection.*;
+    import net.systemeD.potlatch2.save.*;
 
     public function init():void {
         PopUpManager.addPopUp(this, Application(Application.application), true);
         PopUpManager.centerPopUp(this);
         this.addEventListener(CloseEvent.CLOSE, myGpxDialog_close);
-
-        // store whether the user has seen the help dialog before
-        var obj:SharedObject = SharedObject.getLocal("user_state");
-        obj.setProperty("help_shown","true");
     }
 
     private function myGpxDialog_close(evt:CloseEvent):void {
@@ -27,8 +24,9 @@
     }
 
     private function fetchList():void {
+        SaveManager.getAccessSorted();
         Connection.getConnectionInstance().fetchUserTraces();
-        results.text="yes";
+        results.text="fetching...";
     }
               ]]>
   </mx:Script>