Просмотр исходного кода

Refresh the current folder to avoid still displaying moved asset

Josh Engebretson 10 лет назад
Родитель
Сommit
c69b4277be
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      Script/AtomicEditor/ui/frames/ProjectFrame.ts

+ 3 - 1
Script/AtomicEditor/ui/frames/ProjectFrame.ts

@@ -315,7 +315,9 @@ class ProjectFrame extends ScriptWidget {
 
             dragAsset.move(destPath + dragAsset.name + dragAsset.extension);
 
-            return false;
+            this.refreshContent(this.currentFolder);
+
+            return true;
         }
 
         // dropped some files?